显示root文件系统的每个目录使用的空间(不包括挂载点/外部文件系统)(并对输出进行排序)

Excludes other mountpoints with acavagni's "mountpoint" idea, but with -exec instead of piping to an xargs subshell. Then, calling "du" only once with -exec's "+" option. The first "\! -exec" acts as a test so only those who match are passed to the second "-exec" for du.
.

0

linux命令:find / -maxdepth 1 -mindepth 1 -type d \! -empty \! -exec mountpoint -q {} \; -exec du -xsh {} + | sort -h -h sort | + {} -xsh du -exec \; {} -q mountpoint -exec \! -empty \! d -type 1 -mindepth 1 -maxdepth / find find / -maxdepth 1 -mindepth 1 -type d \! -empty \! -exec mountpoint -q {} \; -exec du -xsh {} + | sort -hrootopen.com
linux命令:find / -maxdepth 1 -mindepth 1 -type d \! -empty \! -exec mountpoint -q {} \; -exec du -xsh {} + | sort -h -h sort | + {} -xsh du -exec \; {} -q mountpoint -exec \! -empty \! d -type 1 -mindepth 1 -maxdepth / find find / -maxdepth 1 -mindepth 1 -type d \! -empty \! -exec mountpoint -q {} \; -exec du -xsh {} + | sort -hrootopen.com
bxpm 2019-03-23 19:04:22
输出
4.0K    /lib64
8.0K    /media
8.0K    /srv
32K     /tmp
92K     /boot
5.8M    /sbin
7.9M    /bin
18M     /etc
45M     /lib
49M     /opt
908M    /root
1.7G    /usr
7.5G    /var
18G     /home

评论

相关推荐
共收录0条命令行
这里是记录和分享命令行的地方, 所有命令行都可以进行评论、提交替代方案.

热门文章