`
standalone
  • 浏览: 613093 次
  • 性别: Icon_minigender_1
  • 来自: 上海
社区版块
存档分类
最新评论

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

 
阅读更多
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
分享到:
评论

相关推荐

    UNIX编程常见问题解答

    1.8 How can I look at process in the system like ps does? 1.9 Given a pid, how can I tell if it's a running program? 1.10 What's the return value of system/pclose/waitpid? 1.11 How do I find out ...

    How is logging implemented in OSS?

    Results: Based on the evidence we collected in 28 top open source projects, we find the logging practice is adopted highly inconsistently among different developers both across projects and even ...

    How to find and fix faults in Linux applications

    Everybody claims that it is easy to find and fix bugs in programs written under Linux. Unfortunately it is very hard to find documents explaining how to do that. In this article you will learn how to ...

    Linux for Beginners: An Introduction to the Linux Operating System

    The file system layout of Linux systems and where to find programs, configurations, and documentation. The basic Linux commands you'll use most often. Creating, renaming, moving, and deleting ...

    The Linux Command Line 原版pdf by Shotts

    Nor am I going to tell you the story of how, some years earlier, Richard Stallman began the GNU Project to create a free Unix-like operating system. That’s an important story too, but most other ...

    Top-k Structure Holes Detection Algorithm in Social Network

    How to find more accurate structural holes has become a key problem in the research. In this paper, we proposed a method to detect the top-k structure holes based on the shortest path increment. It ...

    Mathematica Beyond Mathematics. The Wolfram Language in the Real World

    In the process, you will also learn more about the Wolfram Language and how you can use it to solve a wide variety of problems. The author raises questions from a wide range of topics and answers ...

    How Linux Works 2nd Edition

    Your interest in learning how Linux works may have come from any number of sources. In the professional realm, operations and DevOps folks need to know nearly everything that you’ll find in this book...

    英文原版-Learn Linux in a Month of Lunches 1st Edition

    Learn Linux in a Month of Lunches shows you how to install and use Linux for all the things you do with your OS, like connecting to a network, installing software, and securing your system....

    Learn Linux in a Month of Lunches

    Learn Linux in a Month of Lunches shows you how to install and use Linux for all the things you do with your OS, like connecting to a network, installing software, and securing your system. Whether ...

    How to do research at the MIT AI Lab

    This document presumptuously purports to explain how to do research . We give heuristics that may be useful in picking up the specific skills needed for research (reading, writing, programming) and ...

    The attached code shows how to locate files in a directory u

    The attached code shows how to locate files in a directory using the FileSystemObject. You can search just within the specified directory or include all subdirectories in the search.

    Linux中文HOWTO

    Linux中文HOWTO Linux中文HOWTO Linux中文HOWTO

    How Linux Works(NoStarch,2ed,2014)

    In this completely revised second edition of the perennial best seller How Linux Works, author Brian Ward makes the concepts behind Linux internals accessible to anyone curious about the inner ...

Global site tag (gtag.js) - Google Analytics