Changes

Jump to: navigation, search

OPS435 Assignment 1 for Section C

No change in size, 13:32, 1 February 2021
Overview: du Improved
8 /usr/local/lib/python3.8
267720 /usr/local/lib
</precode></codepre>
You will therefore be creating a tool called <b>duim (du improved></b>. Your script will call du and return the contents of a specified directory, and generate a bar graph for each subdirectory. The bar graph will represent the drive space as percent of the total drive space for the specified directory.
An example of the finished code your script might produce is this:
<code><pre><b>user@host ~ $ ./duim.py /usr/local/lib</b><pre> 
61 % [============ ] 160.2 MiB /usr/local/lib/heroku
4 % [= ] 10.8 MiB /usr/local/lib/python2.7
0 % [ ] 8.0 kiB /usr/local/lib/python3.8
Total: 261.4 MiB /usr/local/lib
</precode></codepre>
The details of the final output will be up to you, but you will be required to fulfill some specific requirements before completing your script. Read on...

Navigation menu