相对路径 . .. ~
目录跳转 cd xxx
创建文件 touch
查看文件 more、cat
查看目录 ls –alR
创建目录 mkdir -p
复制文件 cp
删除文件 rm –r xxx
修改文件权限 chmod –R 700
修改文件(夹)的所有者 chown –R root:root xxx
查看文件属性 stat
解压缩文件 tar –xzvf xxx
修改密码 passwd xxx
查看磁盘空间 df -ah
查看进程 ps -ef |grep
杀掉进程 kill -9
修改环境变量 vi /etc/profile
修改主机名 vi /etc/sysconfig/network
vi /etc/hosts
修改ip地址 vi /etc/sysconfig/network-scripts/ifcfg-eth0
关闭防火墙 service iptables stop
chkconfig iptables off
关闭selinux setenforce permissive
修改/etc/selinux/config