Mar 29, 2004 #1 sirron Programmer Mar 11, 2004 139 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
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
Mar 29, 2004 #2 KenCunningham Technical User Mar 20, 2001 8,475 GB Just do df -m /tmp Upvote 0 Downvote
Mar 29, 2004 Thread starter #3 sirron Programmer Mar 11, 2004 139 US # df -m /tmp df: Not a recognized flag: m Usage: df [-P] | [-IMitv] [-k] [-s] [filesystem ...] [file ...] Upvote 0 Downvote
# df -m /tmp df: Not a recognized flag: m Usage: df [-P] | [-IMitv] [-k] [-s] [filesystem ...] [file ...]
Mar 29, 2004 #4 KenCunningham Technical User Mar 20, 2001 8,475 GB OK, an earlier version? So: 327680 * 512 = 167772160 Bytes 167772160 / 1024 / 1024 = 160 Mb HTH. Upvote 0 Downvote
Mar 29, 2004 #5 jprabaker Technical User May 31, 2001 185 GB This does the same as the last post, but in one step: 327680/2/1024 = 160Mb. Cheers, John Upvote 0 Downvote
Mar 29, 2004 #6 aixmurderer IS-IT--Management Nov 28, 2000 603 NZ Try df -k /tmp IBM Certified Confused - MQSeries IBM Certified Flabbergasted - AIX 5 pSeries System Administration MS Certified Windblows Rebooter Upvote 0 Downvote
Try df -k /tmp IBM Certified Confused - MQSeries IBM Certified Flabbergasted - AIX 5 pSeries System Administration MS Certified Windblows Rebooter
Mar 29, 2004 #7 KenCunningham Technical User Mar 20, 2001 8,475 GB 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! Upvote 0 Downvote
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!
Apr 6, 2004 #8 sallopez MIS Apr 6, 2004 6 US You can try these also.. # du -sk /tmp and # df -kt /tmp Upvote 0 Downvote