Free Trial

Safari Books Online is a digital library providing on-demand subscription access to thousands of learning resources.

  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint
Share this Page URL
Help

Chapter 7. Getting Information About the... > Determining disk usage with du

Determining disk usage with du

Another piece of information that you can access is how much disk space within the UNIX system is in use. You can do so using du, as shown in Code Listing 7.5.

To determine disk usage with du:

  • du

    At the shell prompt, enter du. As Code Listing 7.5 shows, you'll get information about disk usage in the current directory as well as in all subdirectories. The numbers are usually measured in 1K blocks (as with df). You can make sure by using du -k.


  

You are currently reading a PREVIEW of this book.

                                                                                                                    

Get instant access to over $1 million worth of books and videos.

  

Start a Free Trial


  
  • Safari Books Online
  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint