Hi,
os is TRU64.
When i type df -h , i get info about usage of my filesystems in MB and in GB.
Is there some command that i could use so to get sum of all used space on all filesystems ?
thanks.
Hi Buddy,
u can try the command as below
df -h|awk '{s+=$3} END {print s}'
here $3 is the 3rd column of df -h output. If u want to get sum of any other column just type $<column number> for that column
Max thank you very much.
That is exactly what i needed.
As i found this command very usefull ,
could you pleace point me to some site or book where i could learn such
tips&tricks
No dear,
I dont know any such books...but u can ask these things to this forum....people will help you...
Good that u found the command useful....
Read about awk and nawk filters....they are really useful....
thanks max
, i' ll give a look on those filters
and stop by here when seeking for more knowledge about managing unix/linux systems.
cheers ,
Toni
ya happy learning.....dear...u may mail me for questions on email id removed by moderator
I ll try best to answer.
Please do not post your email id on the forums. This is against the rules and also a privacy risk.