linux 不常用命令及命令组合
来源:互联网 发布:国外域名代理商 编辑:程序博客网 时间:2024/05/17 22:05
- lsof:list open files,
- sudo lsof | grep deleted:则列出虽然被删除,但还处于打开状态的文件。注意,这些文件占用的空间,只有在这些文件关闭时,才会被释放。
- md5sum:获得文件的 md5,以检查下载的文件是否正确;
- sha256sum:
1. 命令组合
How to Find Out Top Directories and Files (Disk Space) in Linux
- du command: Estimate file space usage.
- -h : Print sizes in human readable format (e.g., 10MB).
- -S : Do not include size of subdirectories.
- -s : Display only a total for each argument sort command : sort lines of text files.
- -r : Reverse the result of comparisons.
-h : Compare human readable numbers (e.g., 2K, 1G).
head : Output the first part of files.找出 Linux 系统中某目录下前 5 大目录
# du -a /home | sort -n -r | head -n 5
当前目录下占磁盘空间最大的目录
# du -a | sort -n -r | head -n 5
更好地可读性:
# du -hs * | sort -rh | head -5
阅读全文
0 0
- linux 不常用命令及命令组合
- shell 快捷组合命令及常用命令
- linux命令2——不常用命令
- linux常用命令组合
- Linux常用命令(压缩及解压命令)
- Linux命令类库机制及常用命令
- Linux常用命令及文件处理命令
- Linux命令-组合命令
- Linux命令类库机制及常用命令_命令操练
- linux 几个不常用命令学习 之 cal 命令
- linux 几个不常用命令学习 之 yes命令
- linux 几个不常用命令学习 之 env命令
- Linux不常用命令
- linux 不常用命令
- [Linux]不常用命令汇总
- Linux命令组合应用
- Linux命令类库机制及常用命令(1)
- SecureCRT萌新常用命令及Linux命令大全整理
- pickle的用法
- Android控件——RadioGroup/RadioButton定义及监听
- Hadoop NameNode 高可用 (High Availability) 实现解析
- 两个容器中的数据合并
- JavaScript基础知识总结
- linux 不常用命令及命令组合
- 嗯,一个开始
- POJ 1782 Run Length Encoding 笔记
- 丑数--中包含因子2、 3 、 5 的数称为丑数
- iptables用法简介
- python pyinstaller 学习笔记
- 如果打开cmd命令窗口?
- java.util.ResourceBundle使用详解
- 关键字之数据类型