重庆分公司,新征程启航

为企业提供网站建设、域名注册、服务器等服务

Linux基础命令man和reboot的使用

本篇内容介绍了“Linux基础命令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)

“Linux基础命令man和reboot的使用”的内容就介绍到这里了,感谢大家的阅读。如果想了解更多行业相关的知识可以关注创新互联网站,小编将为大家输出更多高质量的实用文章!


名称栏目:Linux基础命令man和reboot的使用
当前网址:http://cqcxhl.cn/article/poidio.html

其他资讯

在线咨询
服务热线
服务热线:028-86922220
TOP