Linux基本命令
来源:互联网 发布:舞台灯光编程软件mac 编辑:程序博客网 时间:2024/05/20 16:32
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)
- 【Linux】Linux基本命令
- Linux基本命令-mkdir命令
- linux基本命令-mysql命令
- Linux基本命令
- Linux基本命令
- linux基本命令
- linux基本命令(编译)
- Linux Mysql基本命令
- Linux基本命令
- Linux初学者基本命令
- linux基本命令
- Linux基本命令介绍
- linux基本操作命令
- Linux基本操作命令
- LINUX的基本命令
- LINUX的基本命令
- Linux基本命令
- linux基本命令
- Snapshots: The alternative backup
- 感悟之三者
- MySQL 的主要特征
- Myeclipse中package,source folder,folder区别
- CentOS/RHEL中TCP优化
- Linux基本命令
- 小技巧之汇总一
- 【原创】给CSDN博客加上腾讯微博
- linux
- 软件设计原则
- C++的多态
- asp.net正则表达式提取网页网址、标题、图片实例以及过滤所有HTML标签实例
- 曾经的2010与今天的2011
- 9针15针VGA接口引脚定义