[root@linuxserver home]# [用户名@主机名 当前目录]用户权限($表示普通用户,#表示管理员用户) [root@linux]# date # 查看当前系统时间 ------------------------------------------------------------------------------------ 如下四个都是关机命令: [root@linux]# shutdown -h now [root@linux]# halt [root@linux]# init 0 [root@linux]# poweroff ----------------------------------------------- [root@linux]# login # 注销(还能够按Ctrl+d) ----------------------------------------------- 如下三个都是重启命令: [root@linux]# reboot [root@linux]# shutdown -r now [root@linux]# init 6 ----------------------------------------------- [root@linux]# history # 显示历史使用命令 ---------------------------------------------------------------------------------------------------------- [root@linux]# ifconfig eth0 192.168.X.X netmask 255.255.255.0 # 临时更改IP地址(重启无效) [root@linux]# ifconfig eth0:1 192.168.X.X netmask 255.255.255.0 # 给一张网卡绑定多个IP地址 ----------------------------------------------------------------------------------------------------------