How to find the total size of a dirctory tree in Solaris


 
Thread Tools Search this Thread
Special Forums Hardware Filesystems, Disks and Memory How to find the total size of a dirctory tree in Solaris
# 1  
Old 05-04-2006
How to find the total size of a dirctory tree in Solaris

Hi,

I want to find the total size of some directory trees in my solaris 9 machine.

Is there a command or utility I can use to do it. Please let me know if there is
any way.

Thanks
Akheel
# 2  
Old 05-06-2006
# du -ks /top/dir

This will give a summary in kilobytes of disk usage for /top/dir and all its subordiantes.

For more info...

# man du

Cheers
ZB
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

Share Dirctory in Solaris

Hi, I am trying to share a directory from a Solaris 10 m/c to another Solaris 10 m/c.But I am getting an error .Please let me know if I have missed anything On Server 1 svcsadm -v enable -r network/nfs/server share -F nfs -o rw /mount_point In /etc/dfs/dfstab ------ share -F nfs -o rw... (5 Replies)
Discussion started by: Rossdba
5 Replies

2. Solaris

Find the total size of multiple files

If I have a number of files in a directory, for example, test.1 test.2 test.3 abc.1 abc.2 abc.3 and I need to find the total file size of all of the test.* files, I can use du -bc test.* in Linux. However, in Solaris, du does not have the -c option. What can I do in Solaris to get... (11 Replies)
Discussion started by: learnix
11 Replies

3. Shell Programming and Scripting

Find a particular directory in multiple file systems and calculate total size

Hello : I need some help in writing a ksh script which will find a particular directory in all the file systems in a server and finally report the total size of the direcotry in all the file systems. Some thing like this.. find /u*/app/oracle -type d -name "product" -prune and then... (1 Reply)
Discussion started by: Sam1974
1 Replies

4. Shell Programming and Scripting

Find the total size of all directories that are owned by a particular User

Hi All, I am writing a script in which i need find the total size of all the directories that are present in a directory which are owned by a particular user. I will explain in details i have a dir DIR1 in which i have 5 dir's DIRA DIRB DIRC DIRD DIRE. DIRA DIRC DIRE are owned by "eswar" i... (2 Replies)
Discussion started by: firestar
2 Replies

5. Solaris

Solaris 10 - How to find the total size of my hard disk?

Friends, I have an 80 GB HDD, but I wish to know if there is a direct command in Solaris 10 to find out the size of my hard disk (similar to fdisk -l in Linux). Thank you saagar (3 Replies)
Discussion started by: saagar
3 Replies

6. Solaris

How to find memory size on solaris zone

Guys, How to find memory size on solaris zone? We have total 16 GB and have 3 zone, but not sure how to find memory size for each zone? Please help. (1 Reply)
Discussion started by: mokkan
1 Replies

7. UNIX for Dummies Questions & Answers

Find total size for some files?

Hi, I'm newbie to Unix. I'd like to count the total size of those files in my directory by date. For example, files on this period 05/01/08 - 05/31/08. If possible can we count by byte instead of kb. if I use $ du - ks , it will add up all files in the dir. thanks, Helen (5 Replies)
Discussion started by: helen008
5 Replies

8. Solaris

how to find MTU size on solaris.

How do i find the MTU size on solaris, which file to look into. Please help I'm a newbie to administration. (1 Reply)
Discussion started by: ramky79
1 Replies

9. Solaris

command to find out total size of a specific file size (spread over the server)

hi all, in my server there are some specific application files which are spread through out the server... these are spread in folders..sub-folders..chid folders... please help me, how can i find the total size of these specific files in the server... (3 Replies)
Discussion started by: abhinov
3 Replies

10. UNIX for Dummies Questions & Answers

How to find RAM size in my Solaris 8

Hello there, I have a very basic question. It is so simple to find out all the information about system in windows environment. But I do not see any easy way to find it out in my Unix (Solaris 8) box. All I want to find out how much RAM I have in my solaris 8 box. Is there any command? ... (3 Replies)
Discussion started by: malikabid
3 Replies
Login or Register to Ask a Question