linux 命令 j,Linux基本命令

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     Requests  that  the  system  be 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     Only  send  out  the warning messages and disable logins, do not actually

bring the system down.

eg:

shutdown -h now/0

shutdown -h 10:00 /*10点关机

shutdown -h +10  10mins后关机

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)

阅读(213) | 评论(0) | 转发(0) |

0

上一篇:没有了

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值