Which Folder occupies more space? | Unix Linux Forums | HP-UX

  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 Thread    
 
Thread Tools Search this Thread Display Modes
    #1  
Old 07-11-2013
mohtashims mohtashims is offline
Registered User
 
Join Date: Jun 2011
Last Activity: 5 July 2014, 5:18 PM EDT
Posts: 354
Thanks: 81
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 07-11-2013
vidyadhar85's Avatar
vidyadhar85 vidyadhar85 is offline Forum Advisor  
The Tutor
 
Join Date: Jun 2008
Last Activity: 9 April 2014, 1:31 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 07-11-2013
mohtashims mohtashims is offline
Registered User
 
Join Date: Jun 2011
Last Activity: 5 July 2014, 5:18 PM EDT
Posts: 354
Thanks: 81
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 07-11-2013
vidyadhar85's Avatar
vidyadhar85 vidyadhar85 is offline Forum Advisor  
The Tutor
 
Join Date: Jun 2008
Last Activity: 9 April 2014, 1:31 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 07-11-2013
Peasant's Avatar
Peasant Peasant is offline
Registered User
 
Join Date: Mar 2011
Last Activity: 22 July 2014, 7:23 AM EDT
Posts: 646
Thanks: 17
Thanked 146 Times in 142 Posts
Try du -sk <dirname> .

Regards
Peasant.
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
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 01:27 PM.