Unix/Linux Go Back    


HP-UX HP-UX (Hewlett Packard UniX) is Hewlett-Packard's proprietary implementation of the Unix operating system, based on System V.

Which Folder occupies more space?

HP-UX


Closed Linux or Unix Question    
 
Thread Tools Search this Thread Display Modes
    #1  
Old Unix and Linux 07-11-2013
mohtashims mohtashims is offline
Registered User
 
Join Date: Jun 2011
Last Activity: 12 July 2015, 8:02 AM EDT
Posts: 403
Thanks: 93
Thanked 0 Times in 0 Posts
Which Folder occupies more space?

Hi,

What are the correct parameters to list folders size in MBs under a particular directory in HP-UX ?

I know
Quote:
df
and
Quote:
du
commands but cannot get the output of folder sizes in MBs.
Sponsored Links
    #2  
Old Unix and Linux 07-11-2013
vidyadhar85's Unix or Linux Image
vidyadhar85 vidyadhar85 is offline Forum Advisor  
The Tutor
 
Join Date: Jun 2008
Last Activity: 17 April 2015, 12:45 AM EDT
Location: INDIA, Bangalore
Posts: 2,049
Thanks: 16
Thanked 106 Times in 102 Posts
df display filesystem disk usage

du display the actual file space usage.. you can use du.. just look for option like -g or -h to get the desired output.. read man page I am sure it has go some option..
Sponsored Links
    #3  
Old Unix and Linux 07-11-2013
mohtashims mohtashims is offline
Registered User
 
Join Date: Jun 2011
Last Activity: 12 July 2015, 8:02 AM EDT
Posts: 403
Thanks: 93
Thanked 0 Times in 0 Posts
Quote:
Originally Posted by vidyadhar85 View Post
df display filesystem disk usage

du display the actual file space usage.. you can use du.. just look for option like -g or -h to get the desired output.. read man page I am sure it has go some option..
the
Code:
du -H

command drills down all sub-directories which I do not want. I just want to see all directories in the parent directory and not drill further down. Also, it does not show me in MBs.
    #4  
Old Unix and Linux 07-11-2013
vidyadhar85's Unix or Linux Image
vidyadhar85 vidyadhar85 is offline Forum Advisor  
The Tutor
 
Join Date: Jun 2008
Last Activity: 17 April 2015, 12:45 AM EDT
Location: INDIA, Bangalore
Posts: 2,049
Thanks: 16
Thanked 106 Times in 102 Posts
take a look at -s option.. if its there
Sponsored Links
    #5  
Old Unix and Linux 07-11-2013
Peasant's Unix or Linux Image
Peasant Peasant is offline
Registered User
 
Join Date: Mar 2011
Last Activity: 31 July 2015, 4:36 AM EDT
Posts: 824
Thanks: 20
Thanked 196 Times in 187 Posts
Try du -sk <dirname> .

Regards
Peasant.
Sponsored Links
Closed Linux or Unix Question

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Linux More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
find the folder with space in name. rdcwayx Shell Programming and Scripting 2 09-29-2009 11:07 PM
Creating space in root folder Browser UNIX for Dummies Questions & Answers 2 06-20-2008 04:18 AM
space in folder name sam99 Shell Programming and Scripting 2 03-06-2008 07:15 PM
Trick to ignore space in folder name pulkit Shell Programming and Scripting 3 01-21-2008 07:07 AM
space in perticular folder in unix spandu UNIX for Dummies Questions & Answers 7 06-07-2006 02:13 AM



All times are GMT -4. The time now is 05:19 AM.