How to check total disk usage ?


 
Thread Tools Search this Thread
Top Forums UNIX for Advanced & Expert Users How to check total disk usage ?
# 1  
Old 02-10-2010
How to check total disk usage ?

Hi..

What is the command to check total disk usage for specific directory in MG/GB/Byte ?

As example i want to check disk usage for directory pproc ?

Please help me..

Thank you,
Baharin
# 2  
Old 02-10-2010
Take a look at the man page for du.

And if you meant the /proc directory, the "size" of that won't tell you anything as it's just a virtual file system which acts as an interface to kernel data structures.
# 3  
Old 02-10-2010
I have tried a few steps using du command, but i do not what is the real size.

Code:
nv2am:/acec/nv2am> du pproc/
128     pproc/files/parseRules
116     pproc/files/ddf
115728  pproc/files
48      pproc/data/test
0       pproc/data/output
0       pproc/data/error
68      pproc/data
139022  pproc/

nv2am:/acec/nv2am> du -s pproc/
139040  pproc/

nv2am:/acec/nv2am> du -b pproc/
128     pproc/files/parseRules
116     pproc/files/ddf
115728  pproc/files
48      pproc/data/test
0       pproc/data/output
0       pproc/data/error
68      pproc/data
139022  pproc/

nv2am:/acec/nv2am> du -k pproc/
64      pproc/files/parseRules
58      pproc/files/ddf
57864   pproc/files
24      pproc/data/test
0       pproc/data/output
0       pproc/data/error
34      pproc/data
69511   pproc/

# 4  
Old 02-10-2010
use the -h option..


Code:
du -sh /tmp

Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. UNIX for Beginners Questions & Answers

Disk usage monitoring and record the disk used in last 24 hour

HI I am Trying to edit the below code to send email every day with difference of disk utilized in for last 24 hours but instead getting same usage everyday. can you please help me to point out where my calculation is going wrong. Thank you. ================= #!/bin/bash TODAY="at $(date... (0 Replies)
Discussion started by: Mi4304
0 Replies

2. Solaris

Total CPU usage on a server

hi, i am using solaris server. I want to find the total CPU usage on a server. Top command will give that result, but here that command is not working. So anyone can help me to find the total CPU usage. (2 Replies)
Discussion started by: Arasu123
2 Replies

3. UNIX for Advanced & Expert Users

Finding out total memory usage

Hi, I have a server box with 16GB ram in it, within the server box there are 3 VMs running with a total allocation of 9GB. if I add up all the numbers under memory info using vmstat I get 15.8GB so I can say it adds up to 16Gb... Is there a way to see from the command line how much memory... (2 Replies)
Discussion started by: speedhunt3r
2 Replies

4. UNIX for Dummies Questions & Answers

Print summary or the total disk usage of conf file

hey i want to print the summary or the total disk usage of the configuration files that are in the /etc directory printed in human-readable format. i think i got somewhere right as am using wc *.conf commands but i am unsure how to use to put it in human-readable format with the wc command. ... (13 Replies)
Discussion started by: stefanere2k9
13 Replies

5. UNIX for Dummies Questions & Answers

Total cpu usage in percent(%)

How to determine the total percentage cpu usage of a server having 4 cpu cores(quad core)? (3 Replies)
Discussion started by: proactiveaditya
3 Replies

6. Shell Programming and Scripting

Finding total Percentage CPU usage

Hi, How can I find total CPU usage in percentage? e.g. if my system has 8 CPUs and I want to list total usage for all of them, is it possible through a command? I have tried some of the commands like top, mpstat, sar. The output of those commands has to be manipulated to derive the percentage... (14 Replies)
Discussion started by: jal_capri
14 Replies

7. Shell Programming and Scripting

Total usage memory by user

Hi, When running top on linux redhat machine , i see that i have 16gb of memory in my machine and about 14.5gb of memory are in use: Mem: 16395780k total, 14970960k used, 1424820k free, 370264k buffers Swap: 4192956k total, 25824k used, 4167132k free, 12029400k cached How can i... (3 Replies)
Discussion started by: yoavbe
3 Replies

8. Solaris

current CPU usage, memory usage, disk I/O oid(snmp)

Hi, I want to monitor the current cpu usage, monitor usage , disk I/o and network utlization for solaris using SNMP. I want the oids for above tasks. can you please tell me that Thank you (2 Replies)
Discussion started by: S_venkatesh
2 Replies

9. UNIX for Dummies Questions & Answers

How to check total allocated external disk in unix

hi guys im new here, would like to ask what is the syntax or how could i check the total allocated external disk in HP-UX??? ive check the allocated size using SAM, but in some servers the SAM hangs when checking the disk space. So i would like to know using command line. thanks (3 Replies)
Discussion started by: gob23g
3 Replies

10. Programming

Check the Disk usage Programmatically

Hi all, Do we have anyway to get the freediskspace for within a C program? I need functionality similar to 'df -h' -> which gives the % of utilization... Otherwise, if we go and use 'system ("df -h /home/myhome/")', do we have any way of capturing the output into a string and parse the... (2 Replies)
Discussion started by: SriSri
2 Replies
Login or Register to Ask a Question