忘了很多,没办法写博客备份:
Linux基本命令:
世卫组织查看当前用户
ps aux (我经常增加一个“-”。 有一行错误信息)
netstat (具体的man or info to CC ) )。
关闭关闭关闭重新引导命令
shutdown语法:
/sbin/shutdown[-t秒][-arkhncfF时间][警告消息]
eg:
/sbin/shut down-h10 ' serverwillbeshutdownedafter 10 mins '
man下的参数:
选项
- rrequeststhatthesystemberebootedafterithasbeenbroughtdown。
- hrequeststhatthesystembeeitherhaltedorpoweredoffafterithas
been brought down,withthechoiceastowhichleftuptothesystem。
- hrequeststhatthesystembehaltedafterithasbeenbroughtdown。
- prequeststhatthesystembepoweredoffafterithasbeenbroughtdown。
- ccancelsarunningshutdown.timeisnotspecifiedwiththisoption,the
第一协议is消息。
- konlysendoutthewarningmessagesanddisablelogins,do not actually
bring the system down。
eg:
shutdown -h now/0
shutdown -h 10:00 /*10点关闭
Shut down-h 10 10分钟后关闭
休眠(rebootatonce )。
shut down-r30 ' systemwillrebootin 30 mins '
shutdown -k 'System will reboot ' (
重新引导命令
shutdown -r now与reboot几乎相同,在关闭之前输入回填命令。
同步; 同步; 同步; 重新引导
fsck-checkandrepairalinuxfilesystem
fsck /dev/hda7:
toclearthewrongdiskblockof/dev/hda7(单机模式根)。
文章资料来自新居网:整理。