[root@localhost ~]#命令名 选项 参数 ---(root登入)
对命令的结构掌握好了,下面凡尘给大家系统一些常用的命令。
[root@localhost ~]#reboot
[root@localhost ~]#init 6
[root@localhost ~]#shutdown -r now
[root@localhost ~]#
备注:Shutdown命令其他用法,例如:
#shutdown -r time
Time可以这样表示: 20:10, +10, now
[root@localhost ~]#shutdown -r 10:50 //10:50分重启
[root@localhost ~]#shutdown -r now //立即快速关机重启
[root@localhost ~]#shutdown -r +5 //5分钟后重启
[root@localhost ~]#init 0
[root@localhost ~]#poweroff
[root@localhost ~]#halt
[root@localhost ~]#shutdown -h now
[root@localhost ~]#tty
[root@localhost ~]#cal
[root@localhost ~]#cal 2008
查看和设定系统时间
[root@localhost ~]#date (显示当前系统日期时间)
[root@localhost ~]#date -s yyyymmdd (设置系统日期)
[root@localhost ~]#date -s 09:30:20 (设置系统时间)
[root@localhost ~]#who
[root@localhost ~]#whoami
[root@localhost ~]#exit
[root@localhost ~]#logout
[root@localhost ~]#hostname
[root@localhost ~]#hostname rhel5 //临时设置计算名为rhel5
[root@localhost ~]#wall \'message info\' //发系统中所有用户发广播消息
[root@localhost ~]#write us1 //向指定已登入的用户us1发消息
请输入要发送的信息
按