语言入口:简体中文 | English | 北亚博客
 
    
 
北亚Linux数据恢复

首席工程师:张宇

手机:18600440055

座机:4006505646-801

传真:4006505646-809

Email:zy@datahf.net

地址:北京市海淀区永丰基地丰慧中路7号新材料创业大厦B座205室
QQ:点击这里给我发消息
当前位置:首页>>Linux修复知识>>Linux文件系统修复>>正文
Linux修复知识

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)

文章引用自:


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

上一篇:JFS文件系统简介
下一篇:tar命令详解
JFS文件系统简介
XFS文件系统简介
Reiserfs文件系统简介
EXT3文件系统简介
常见Linux文件系统简介
GRUB简介与配置
LILO的使用和配置
Linux单用户模式维护系统
引导加载程序简介
重置Linux用户口令
  版权所有@北京北亚时代科技有限公司   京ICP备09039053号    
  总部电话:(010)82488636  中国·北京·海淀区中关村E世界C座8层879室               站点地图   联系我们  RSS阅读
j=