$ du -sh * |sort -h
# 显示的文件/目录的大小, 按可读size形式排序。-h可在新版本的sort中使用。
示例:
[promote net]$ du -sh * | sort -h
4.0K checksum.c
4.0K clients.h
4.0K hub.h
4.0K Makefile.objs
$ du -sh * |sort -h
# 显示的文件/目录的大小, 按可读size形式排序。-h可在新版本的sort中使用。
示例:
[promote net]$ du -sh * | sort -h
4.0K checksum.c
4.0K clients.h
4.0K hub.h
4.0K Makefile.objs