60 likes | 69 Views
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/
E N D
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>
Get Size of Home Directory Run the following command to get size of home directory. $ du /home/ubuntu
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
Get Size of Subfolders Here is the command to get size of 1st level of subfolders $ du --max-depth=1 /home/ubuntu
Thank You Visit for details https://fedingo.com/how-to-get-size-of-directory-in-linux/