1:立刻关机(root用户)
shutdown -h now
2:15分钟后立刻关机
shutdown -h 15
3:立刻重启
reboot
或者
shutdown -r now #(root用户)
4:15分钟后立刻重启
shutdown -r 15
5:解压文件
tar -zxvf XXX.tar.gz
6:安装软件包
yum install xxx
7:永久关闭防火墙
chkconfig iptables off
8:临时关闭防火墙(下次开机失效)
servcie iptables stop
9:查看防火墙状态
service iptables status
10:开启以前设置的永久关闭防火墙
chkconfig iptables on
11:开启临时关闭防火墙
service iptables start
12:返回上次所在目录
cd -
13:查看当前目录
pwd
14:复制文件到指定目录
cp -r 源文件目录 要复制到的文件目录
cp -r /usr/text1 /usr/local/ #把usr目录下的text1复制到usr/local目录下。
15:删除指定文件
mv -rf /usr/local/text1 #删除/usr/local目录下的text1文件
(。。。未完待续,以后会慢慢补全。)