FRIHOSTFORUMSFAQTOSBLOGSDIRECTORY
You are invited to Log in or Register a Frihost Account!

bash scripting help

 


nunosilva
Anyone who knows linux bash scripting please help me where to find info or code that returns the current size of our HD, or the remaing space available. or both! Very Happy
like [5G/21G]
5G available from 21G total....

thanks
arch23
this can get you started:
du -s Displays total disk usage

http://www.ss64.com/bash/du.html
dandelion
I think the 'df' command generates more informative output.
nunosilva
yesm, but I think that's not what I want: i'll show you my command line:

Code:


Seg Dez 05
12:38:38
nuno@shortnet



after nuno@shortnet i'll put the commands I want to run (emerge, cd, ls...)
so I would like something like:

Code:


Seg Dez 05
12:38:38
(5,4Gb) nuno@shortnet



for example!
the 5,4G would be the space remaining...
Reply to topic    Frihost Forum Index -> Scripting -> Php and MySQL

FRIHOST HOME | FAQ | TOS | ABOUT US | CONTACT US | SITE MAP
© 2005-2007 Frihost, forums powered by phpBB.