免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 5335 | 回复: 5
打印 上一主题 下一主题

Linux基本命令 [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2008-02-02 11:37 |只看该作者 |倒序浏览

忘了不少东西,无奈写个Blog  Backup:
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)

文章引用自:


本文来自ChinaUnix博客,如果查看原文请点:http://blog.chinaunix.net/u2/60826/showart_475030.html

论坛徽章:
0
2 [报告]
发表于 2009-04-13 16:41 |只看该作者

回复 #1 athena.lee 的帖子

dff

论坛徽章:
0
3 [报告]
发表于 2009-04-16 22:23 |只看该作者

回复 #1 athena.lee 的帖子

现在是2009年了,最早在2003就玩linux还没有任何进步。为了钱途而拼搏。技术早丢一边了。真的很失败。

论坛徽章:
0
4 [报告]
发表于 2010-03-30 22:24 |只看该作者

论坛徽章:
0
5 [报告]
发表于 2010-09-23 17:04 |只看该作者
才这么几条命令啊。

论坛徽章:
0
6 [报告]
发表于 2011-02-27 16:50 |只看该作者
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP