讲解Linux基础命令之:man、reboot

系统 Linux
本文主要讲解了linux基础命令中的man与reboot应用,man是用来排版并显示线上求助手册,man命令中的-r.-h.-H等多个参数的概念,执行reboot指令可让系统停止运作,并重新开机。

经过长时间学习Linux基本命令,man与reboot命令还是比较常用的,于是我研究了一下man与reboot应用,在这里拿出来和大家分享一下,希望对大家有用。

Linux基本命令:
who查看当前user
ps aux (我经常多一个‘-’,有一行错误信息)
netstat (具体man or info to CC)
shutdown reboot关机命令
shutdown语法:
/sbin/shutdown[-t秒][-arkhncfF时间][警告信息]
eg:
/sbin/shutdown -h 10 'Server will be shutdowned after 10 mins'

man下的参数:
OPTIONS
◆-r Requests that the system be rebooted after it has been brought down.
◆-h Requeststhatthesystembe either halted or powered off after it has been brought down, with the choice as to which left up to the system.
◆-H Requests that the system be halted after it has been brought down.
◆-P Requests that the system be powered off after it has been brought down.
◆-c Cancels a running shutdown.TIME is not specified with this option,the first argument is MESSAGE.
◆-k Onlysendoutthe warning messages and disable logins, do not actually bring the system down.

eg:
shutdown -h now/0
shutdown -h 10:00 /*10点关机
shutdown -h +1010mins后关机
shutdown -r now (reboot at once)
shutdown -r +30 'System will reboot in 30mins'
shutdown -k 'System will reboot'(发送警告信息)

reboot命令
shutdown -r now几乎与reboot相同,关机之前输入回填指令:
sync;sync;sync;reboot
fsck - check and repair a Linux file system

fsck /dev/hda7:
To clear the wrong disk block of /dev/hda7 (单人单机模式root)

【编辑推荐】

  1. linux磁盘命令管理优势特点之:df命令全面解析
  2. linux磁盘管理命令之:du命令详解
  3. Linux压缩打包方法连载之六:cpio 命令
  4. Linux压缩打包方法连载之五:dd命令
  5. Linux压缩打包方法连载之四:compress 命令
责任编辑:薛辈辈 来源: Vlan9
相关推荐

2011-08-23 15:14:35

reboot中文man

2009-10-22 10:50:47

linux磁盘管理命令

2009-10-22 15:27:20

linux磁盘配额

2010-06-28 14:51:25

FTP协议命令

2010-03-11 13:52:02

Linux MAN

2010-03-18 16:51:32

2009-12-03 10:07:55

Linuxman命令使用技巧

2009-10-28 18:35:10

Linux基础用户

2017-06-05 11:03:07

Linuxshutdown命令

2009-12-14 11:29:19

Linux查看命令

2009-10-19 17:10:37

Linux文件命令

2010-01-15 19:37:36

Linux命令

2009-12-21 11:22:37

Linux网络操作命令

2018-04-16 10:12:46

Linux命令gunzip

2009-12-24 17:04:18

nohup命令

2009-10-27 09:26:26

linux系统监控命令

2009-12-25 14:30:05

Linux Vi命令

2010-03-05 15:20:25

Linux man命令

2009-10-27 17:10:05

Linux安全模块

2014-08-11 09:45:33

Linux小技巧
点赞
收藏

51CTO技术栈公众号