Skip to content

๐Ÿ“€ Python Linux script to calculate disk usage statistics.

License

Notifications You must be signed in to change notification settings

anushadatta/DiskStats

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 

History

3 Commits
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 

Repository files navigation

DiskStats

This is a simple Python script on Linux which is used to traverse the directories and files, determine the size of the directories, and generate a disk usage statistics report in CSV format. Module sys.argv is used to access the terminal command line.

Script Execution

To run the script, follow the steps below:

  • Set up virtual environment
~$ virtualenv env
  • Activate virtual environment
~$ source env/bin/activate 
  • Install dependencies
~$ pip install -r requirements.txt
  • Run script
~$ ./disk_report.py /TARGET_DIRECTORY/

About

๐Ÿ“€ Python Linux script to calculate disk usage statistics.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages