How to show largest file and directory size in linux

Print largest file and directory size of the current directory
du -sh * | sort -n -r

Print largest file and directory size of any directory
du -sh * /dirname | sort -n -r

Đăng nhận xét

Mới hơn Cũ hơn