Directories Size


 
Thread Tools Search this Thread
Operating Systems HP-UX Directories Size
# 1  
Old 07-05-2005
Question Directories Size

Hi All

I want to plan my backups, but 1st i would like to know what is the size of each directory. Is there any command which can show me the size of directories?

Regards
# 2  
Old 07-05-2005
Hi,

do a du -sk * and you will see the size of each file and directory in kilobytes ,,,

Cheers
malcom
# 3  
Old 07-07-2005
Try it

run du -sk /dirname to see the desired o/p.

regards,

Awadhesh

Last edited by Awadhesh; 07-07-2005 at 02:10 AM.. Reason: not any special
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Script to sort by size of directories

Hello, I'm trying to find top 5(highest) directories by size. I did something like du -sh * > $file Where I can get all the size with respect to directories, but I need only top 5 directory from the file. How can I sort by size in the file and print top 5 sizes with the directory name??? ... (3 Replies)
Discussion started by: pjeedu2247
3 Replies

2. UNIX for Advanced & Expert Users

Directories converted into files with the same size

Hi Gurus, I know this sounds weird, We have encountered many incidents where some directories on several Solaris 10 boxes, will be converted to files with the same size. for example the file below : -rw-r--r-- 1 rkadm redknee 5027399 Apr 15 00:02 dump This was a directory created... (5 Replies)
Discussion started by: aladdin
5 Replies

3. Shell Programming and Scripting

Directories above particular size

Hi guys, i'm searching for a command, which gives me back all the directories which are greater than a particular size? thx for helping so far :b: guti (2 Replies)
Discussion started by: guti_rocks
2 Replies

4. UNIX for Dummies Questions & Answers

Finding size of all directories

Alright so I've tried a couple different things that at first glance, looked like they worked. find . -maxdepth 5 -type d -daystart -mtime 1 | xargs du -h Which seems to ignore the previous commands such as depth and modified time. find .. -maxdepth 2 -type d -daystart -ctime 1 | xargs... (8 Replies)
Discussion started by: Aussiemick
8 Replies

5. Shell Programming and Scripting

How to list all the directories, sub directories in a mount along with size in ascending order?

Hi , I am very new to unix as well as shell scripting. I have to write a script for the following requirement. In a particular mount, have to list all the directories and sub directories along with size of the directory and sub directory in ascending order. Please help me in this regard and many... (4 Replies)
Discussion started by: nmakkena
4 Replies

6. Shell Programming and Scripting

to find the size of directories

Hi, how to know the size of the files in the directory, exclusing the subfolder. ? i tried du -h du -sk du -k but its not giving.. (2 Replies)
Discussion started by: mail2sant
2 Replies

7. Shell Programming and Scripting

Display top ten directories by size

Hi, I am new to Unix. I want to display top 10 folders by size. I tried with du -ksl * | sort -nr | head -10 command .But I am getting the following error -bash: /usr/bin/du: Argument list too long Can some one help me. Thanks. (5 Replies)
Discussion started by: Satyak
5 Replies

8. Shell Programming and Scripting

checkingthe size of all the .txt , .ext files in all directories ..

hai, i am new to unix scripting & learning unix scripting and doing some assignments.... i have an assignment as follows, i want to check the size of the text file and .ext files in all directories, if any one of them is greater than 100mb , i have to display those files.. ... (2 Replies)
Discussion started by: G.K.K
2 Replies

9. UNIX for Dummies Questions & Answers

Empty directories having different size

$ls -lrt mydir total 12 drwxrwxrwx 2 nobody nobody 512 Aug 8 11:51 tmp drwxrwxrwx 2 nobody nobody 4608 Jan 19 12:20 web.cache $ ls -lrt mydir/web.cache/ total 0 $ ls -lrt mydir/tmp/ total 0 Can anyone explain me the above results? I know the o/p of ls, but this... (3 Replies)
Discussion started by: rahulrathod
3 Replies

10. Shell Programming and Scripting

Split/create directories on basis of their size

Hi, I would really apprciate it if someone expert in shell, "shell guru" scripting can help me. with a shell command how can I create directories and populate on basis of size. Before I confuse you, let me tell you the scenerio. We take hot database backup of oracle on disk, and... (0 Replies)
Discussion started by: amitoverseas40
0 Replies
Login or Register to Ask a Question