Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Don't laugh, but How to... 2

Status
Not open for further replies.

ratbs75

IS-IT--Management
Mar 8, 2001
147
0
0
BE
... list ONE specific folder with the amount of Kb it takes... (or Mb, or what ever... )

Thank you....

(I tried "du", but he list me all subdirs.... don't want to calculate all seperatly)
 
du -s directoryname should do the trick !
 
Forgot to mention. We don't laugh at unix administrators, only NT admins !!!!!
 
LOL LOL on Trunix second post.

Say you have folder /home/ratbs and you want the size of ratbs then
#du -sk /home/* will gives you the size of all the folders in home

or
#cd /home
#du -sk ratbs (will do the trick too)

Patel
 
OUPS, looks like I post an answer as Visitor... anyway, it was me above.... :)

Thnx again....
 
How did this laughing face come up on my answer?

Patel
 
hey ratbs75, this is probably stating the obvious., but have you tried the manual pages for unix commands (e.g. man du, man lp etc from the shell prompt)?
They give you an explanation and options for each command and usually contain a few working examples.
If your system does not have manual pages installed you'll need to speak to your unix administrator before installing yourself (...to be on the safe side).

:->

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top