Linux基本命令

来源:本站
导读:目前正在解读《Linux基本命令》的相关信息,《Linux基本命令》是由用户自行发布的知识型内容!下面请观看由(电工技术网 - www.9ddd.net)用户发布《Linux基本命令》的详细说明。
简介:忘了不少东西,无奈写个Blog Backup:Linux基本命令:who查看当前userps aux (我经常多一个‘-’,有一行错误信息)netstat (具体man or info to CC)shutdown reboot关机命令

忘了不少东西,无奈写个BlogBackup:

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基本命令》最后刷新时间 2024-03-14 01:06:08,本站为公益型个人网站,仅供个人学习和记录信息,不进行任何商业性质的盈利。如果内容、图片资源失效或内容涉及侵权,请反馈至,我们会及时处理。本站只保证内容的可读性,无法保证真实性,《Linux基本命令》该内容的真实性请自行鉴别。