Command to display the space usage (memory usage) of a specific directory. | Unix Linux Forums | UNIX for Dummies Questions & Answers

  Go Back    


UNIX for Dummies Questions & Answers If you're not sure where to post a UNIX or Linux question, post it here. All UNIX and Linux newbies welcome !!

Command to display the space usage (memory usage) of a specific directory.

UNIX for Dummies Questions & Answers


Tags
memory of a directory

Closed Thread    
 
Thread Tools Search this Thread Display Modes
    #1  
Old 11-12-2010
abhisheksunkari abhisheksunkari is offline
Registered User
 
Join Date: Nov 2010
Last Activity: 9 November 2012, 3:24 PM EST
Posts: 20
Thanks: 4
Thanked 0 Times in 0 Posts
Error Command to display the space usage (memory usage) of a specific directory.

Hi all,
Can you please tell me the command, with which one can know the amount of space a specific directory has used.

df -k . ---> Displays, the amount of space allocated, and used for a directory.
du -k <dir name> - gives me the memory used of all the files inside <dir>

But i want the to know, how much memory has one directory used on the whole. Not the memory used by the files & folders inside that directory.

Thanks in advance,
Regards,
Abhishek.
Sponsored Links
    #2  
Old 11-12-2010
pludi's Avatar
pludi pludi is offline Forum Advisor  
Cat herder
 
Join Date: Dec 2008
Last Activity: 28 March 2014, 8:35 AM EDT
Location: Vienna, Austria, Earth
Posts: 5,522
Thanks: 38
Thanked 335 Times in 308 Posts
See the man page of du:
Quote:
-s Instead of the default output, report only the total sum for each of the specified files.
The Following User Says Thank You to pludi For This Useful Post:
abhisheksunkari (11-12-2010)
Sponsored Links
    #3  
Old 11-12-2010
abhisheksunkari abhisheksunkari is offline
Registered User
 
Join Date: Nov 2010
Last Activity: 9 November 2012, 3:24 PM EST
Posts: 20
Thanks: 4
Thanked 0 Times in 0 Posts
MySQL

Hi,
Yes i have just gone through the man page of du sometime back, and learnt about the -s option.
Anyway thanks a lot for the detail description.

Regards,
Abhishek S.
Sponsored Links
Closed Thread

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
How to monitor the IBM AIX server for I/O usage,memory usage,CPU usage,network..? laknar AIX 3 07-16-2009 05:35 AM
current CPU usage, memory usage, disk I/O oid(snmp) S_venkatesh Solaris 2 12-13-2008 05:19 AM
how can I find cpu usage memory usage swap usage and logical volume usage alert0919 HP-UX 3 12-02-2008 01:38 PM
How to find the free space & usage of the particular directory in Hp-Unix? bobprabhu UNIX for Dummies Questions & Answers 2 06-27-2008 01:05 PM
Inconsistent memory usage display spdas Filesystems, Disks and Memory 2 02-16-2007 12:15 AM



All times are GMT -4. The time now is 07:02 PM.