ITeye博客

How do I find the largest top 10 files in linux?

standalone · 2012-04-06 15:24 · linux · 编程语言 · Markdown

http://www.cyberciti.biz/faq/how-do-i-find-the-largest-filesdirectories-on-a-linuxunixbsd-filesystem/

To find out largest file only use command ls as follows in current directory: ls -lSh . | head -5 Output: -rw-r–r– 1 vivek vivek 267M 2004-08-04 15:37 WindowsXP-KB835935-SP2-ENU.exe -rw-r–r– 1 vivek vivek 96M 2005-12-30 14:03 VMware-workstation-5.5.1-19175.tar.gz ls -lSh /bin | head -5 You can also use find command but not du: find /var -type f -ls | sort -k 7 -r -n | head -10

评论(0)

暂无评论。

评论功能维护中,当前仅展示历史评论。