您好,登錄后才能下訂單哦!
本篇內容介紹了“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的使用”的內容就介紹到這里了,感謝大家的閱讀。如果想了解更多行業相關的知識可以關注億速云網站,小編將為大家輸出更多高質量的實用文章!
免責聲明:本站發布的內容(圖片、視頻和文字)以原創、轉載和分享為主,文章觀點不代表本網站立場,如果涉及侵權請聯系站長郵箱:is@yisu.com進行舉報,并提供相關證據,一經查實,將立刻刪除涉嫌侵權內容。