首页 > 编程知识 正文

细说linux基础知识pdf,shell脚本基本命令编辑

时间:2023-05-05 20:40:04 阅读:147255 作者:2317

忘了很多,没办法写博客备份:

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(单机模式根)。

文章资料来自新居网:整理。

版权声明:该文观点仅代表作者本人。处理文章:请发送邮件至 三1五14八八95#扣扣.com 举报,一经查实,本站将立刻删除。