We all know "du" command gives the size of the files, but it not convenient to read or understand the size as "du" command gives the size in KB's
In order to make is human readable format, please follow as mentioned below
du -lsh <directory_name>
du -lsh <file_name>
-h => display the size in human readable format
e.g.,
>> du -lsh prabhath_movies
5GB prabhath_movies
>> du -lsh hero.avi
1GB hero.avi
Thanks for going through this article, Have a good day :-)
In order to make is human readable format, please follow as mentioned below
du -lsh <directory_name>
du -lsh <file_name>
-h => display the size in human readable format
e.g.,
>> du -lsh prabhath_movies
5GB prabhath_movies
>> du -lsh hero.avi
1GB hero.avi
Thanks for going through this article, Have a good day :-)
No comments:
Post a Comment