1 / 6

How to Get Size of Directory

Often you may need to find out the size of directory or subdirectory in Linux. Here is the command to get folder size in Linux using du command.<br><br>Visit https://fedingo.com/how-to-get-size-of-directory-in-linux/

Download Presentation

How to Get Size of Directory

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. How to Get Size of Directory in Linux

  2. How to Get Size of Directory in Linux Du is the most popular command to get size of directory in Linux. Here is its syntax $ du [options] <path_to_file_or_directory>

  3. Get Size of Home Directory Run the following command to get size of home directory. $ du /home/ubuntu

  4. Get Directory Size in Mb, Gb, Tb Here is the command to get directory size in human readable format such as Mb, Gb, Tb. $ du -sh /home/ubuntu 2.0G /home/ubuntu

  5. Get Size of Subfolders Here is the command to get size of 1st level of subfolders $ du --max-depth=1 /home/ubuntu

  6. Thank You Visit for details https://fedingo.com/how-to-get-size-of-directory-in-linux/

More Related