Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

more room on /tmp

Status
Not open for further replies.

sirron

Programmer
Mar 11, 2004
139
0
0
US
I need to calculate the disk space on /tmp

How would I calculate 512 block byte to find MB

right now I have 327680 blocks for my /tmp

can some show me how to calculate this to MB
 
# df -m /tmp
df: Not a recognized flag: m
Usage: df [-P] | [-IMitv] [-k] [-s] [filesystem ...] [file ...]
 
OK, an earlier version?

So:

327680 * 512 = 167772160 Bytes

167772160 / 1024 / 1024 = 160 Mb

HTH.
 
This does the same as the last post, but in one step:

327680/2/1024 = 160Mb.


Cheers,
John
 
Try df -k /tmp

IBM Certified Confused - MQSeries
IBM Certified Flabbergasted - AIX 5 pSeries System Administration
MS Certified Windblows Rebooter
 
Quite right, John. I was trying to explain the process from byte level as sirron doesn't seem to have quite grasped the principles yet!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top