Created
May 13, 2012 06:21
-
-
Save Bigcircle/2686453 to your computer and use it in GitHub Desktop.
*nix下常用命令
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 在线时间统计 / 时间/ 日历 | |
ac / date /cal | |
# 查看进程 | |
ps aux|grep mysql | |
# 关机/重启 shutdown -r重启 -h关机后关闭电源(halt), reboot | |
# 显示挂载的空间列表 | |
df -h | |
# 以文件大小排列来显示文件和目录 | |
ls -lSr |more | |
# 估计dir1目录使用的磁盘空间 | |
du -sh dir1 | |
# 以文件大小的形式显示文件和目录的大小 | |
du -sh * | sort -rn | |
# 显示隐藏目录 | |
chflags nohidden /Users/yourfinder/Library/ | |
# 直接转换到root用户而不需要密码,或者需要的是管理员用户密码,而不是root密码 | |
sudo -i sudo -s sudo su | |
# * * * * * 分、时、日、月、周 | |
crontab -u user -e edit -l list -r rm |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment