Skip to content

subinoyadhikari/DIRECTORY_SIZE_INFORMATION

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 

Repository files navigation

Check Size

This Bash script reports disk usage of a given directory. It checks that the user provides a valid directory path, calculates the total size, and then lists the sizes of all files and subdirectories (depth 1) in human-readable format, sorted largest to smallest. The results are written to file_sizes.txt and also displayed on the terminal.

Steps to use it

chmod +x check_size.sh

./check_size.sh /path/to/directory

About

This Bash script reports disk usage of a given directory. It checks that the user provides a valid directory path, calculates the total size, and then lists the sizes of all files and subdirectories (depth 1) in human-readable format, sorted largest to smallest. The results are written to file_sizes.txt and also displayed on the terminal.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages