Skip to content

A program that prints continuous disk utilization values

Notifications You must be signed in to change notification settings

jroeger23/disk_utilization

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 

Repository files navigation

disk_utilization

A program that prints continuous disk utilization values

Usage

diskutil [-h] [-f] [-i <float>] [-c <int>] [-p <string>] <disk>
	 --human    | -h   : Output in percent
	 --fraction | -f   : When human, also print a fraction
	 --interval | -i   : Update interval in seconds (default 1.0)
	 --count    | -c   : # of output lines (default -1 = inf)
	 --prefix   | -p   : Prefix string to print before each value
	 --suffix   | -s   : Suffix string to print after each value (def. \n)

Simple Example:

diskutil -h sda

May output (one line per second):

2%
0%
0%
...

Advanced Example:

diskutil -hf -i 3.1415 -c 5 --prefix="Usage: " sda

May output (one line every ~PI seconds):

Usage: 0.00%
Usage: 0.86%
Usage: 0.00%
Usage: 1.78%
Usage: 42.57%

Building

make

About

A program that prints continuous disk utilization values

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published