FRIHOST FORUMS SEARCH FAQ TOS BLOGS COMPETITIONS
You are invited to Log in or Register a free 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...
Related topics
Programming Help & Support Guidelines
Language
Re-organise forums
Give each user a sub directory?
scripts and JavaScripts
Want 1,000 frih$? Come here. Looking for website design.
Programming
Help needed to make text box and poll script
Hi all, new here
PHP Scripting HELP
Softwares for Command Line Freaks...
Language to learn for beginner
scripting help
What scripting language do you use?
Reply to topic    Frihost Forum Index -> Scripting -> Php and MySQL

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