Go Back   The UNIX and Linux Forums > Top Forums > UNIX for Dummies Questions & Answers


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 !!

Closed Thread    
 
Thread Tools Search this Thread Display Modes
    #1  
Old 05-15-2012
Registered User
 
Join Date: May 2012
Posts: 9
Thanks: 0
Thanked 0 Times in 0 Posts
Disk Usage

Hi,

I have always felt problems using commands to check disk usage, or I should say I might not be using the commands properly.

dfspace and free are 2 most frequent command that I use, but the data that it echoes is not comprehandable atleast to me.

I want something like windows when you are inside a directory and type the command it should tell you how much memory.

Can some one highlight how to use disk usage.

Appreciate you help!

Last edited by Scott; 05-15-2012 at 11:06 AM.. Reason: Moved from AIX forum
Sponsored Links
    #2  
Old 05-15-2012
Mead Rotor
 
Join Date: Aug 2005
Location: Saskatchewan
Posts: 16,400
Thanks: 492
Thanked 2,537 Times in 2,420 Posts

Code:
du -hs /path/to/folder

perhaps?
Sponsored Links
    #3  
Old 05-15-2012
Scott's Avatar
Scott Scott is online now Forum Staff  
Administrator
 
Join Date: Jun 2009
Location: Zürich
Posts: 6,951
Thanks: 220
Thanked 760 Times in 664 Posts
If it is AIX (even though I just moved it from that forum as the question is fairly generic), then -h should be replaced with your preference of -k, -m or -g. And you could replace the directory name with . (dot) (current directory) if you are already in the directory.
    #4  
Old 05-15-2012
Registered User
 
Join Date: May 2012
Posts: 9
Thanks: 0
Thanked 0 Times in 0 Posts
THanks
du -k /path worked (du -hs /path did not)

Now the question is why 3 entries.

108 /some path
4 /some other path
82712 /Actual path

Actual path is the folder where i was looking for.

---------- Post updated at 11:50 PM ---------- Previous update was at 11:47 PM ----------

Sorry I got it by myself.

Those other entries are the directories under my path.

Thanks for the help!
Sponsored Links
    #5  
Old 05-15-2012
Scott's Avatar
Scott Scott is online now Forum Staff  
Administrator
 
Join Date: Jun 2009
Location: Zürich
Posts: 6,951
Thanks: 220
Thanked 760 Times in 664 Posts
That's what the "s" was for
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
current CPU usage, memory usage, disk I/O oid(snmp) S_venkatesh Solaris 2 12-13-2008 05:19 AM
Disk Usage harikamamidala Shell Programming and Scripting 4 08-16-2007 02:22 PM
disk usage (df vs du) gfhgfnhhn UNIX for Advanced & Expert Users 8 09-23-2006 08:06 PM
Disk Usage lewisoco UNIX for Dummies Questions & Answers 3 05-09-2006 08:44 PM
Disk usage (Mac OS 10.4) H1tokori UNIX for Dummies Questions & Answers 5 12-05-2005 06:37 PM



All times are GMT -4. The time now is 04:08 AM.