hostname%20查看主机名称,修改主机名%20vi%20/etc/sysconfig/networkifconfig%20eth0%20192.168.0.1,重启无效vi%20/etc/sysconfig/network-scripts/ifcfg-eth0%20修改永久有效uname%20-a%20查看系统的版本mount%20挂载硬盘
>>>%20mount%20-t%20iso9660%20-o%20ro%20/dev/cdrom%20/mnt/cdrom%20%20#%20%20将光驱挂载到/mnt/cdrom%20%20-t%20表示文件类型%20%20%20-o%20表示类型%20%20ro为只读(readonly)
>>>%20mount%20-t%20cifs%20//192.168.1.100/tools%20/%20%20%20#加载windows共享%20
>>> umount /mnt/cdrom
>>> du -sh /etc # 查看文件的大小
>>> service --status-all # 查看所有的后台服务
>>> service network restart # 重启网路服务
# 系统的启动级别 vim /etc/inittab
# 0 - halt (Do NOT set initdefault to this)
# 1 - Single user mode
# 2 - Multiuser, without NFS (The same as 3, if you do not have networking)
# 3 - Full multiuser mode
# 4 - unused
# 5 - X11
# 6 - reboot (Do NOT set initdefault to this)``
# 一般就是3
>>> chkconfig iptables --list # 查看iptables的启动级别
>>> chkconfig iptables off # 关闭iptables自动启动
>>> mkdir aaa
>>> mkdir -p aaa/bbb/ccc #循环创建目录,父目录不存在则创建
>>> rm -rf aaa
>>> mv aaa anglebaby
>>> echo "i miss you,my baby" > somefile.1
>>> tail -10 install.log
>>> tail -f install.log
>>> tail -F install.log
>>> chmod u+x aaa # 给aaa的拥有者添加一个可执行权限
>>> chmod g-r aaa # 给aaa的所属的组删除一个可读权限
>>> chmod o+w aaa # 给其它的用户添加一个可写权限
useradd angela 新增用户
passwd angela 添加密码,按照提示输入
上一个教程:Linux之at命令
下一个教程:LINUX常用命令