The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > OS Specific Forums > SUN Solaris
Google UNIX.COM


SUN Solaris The Solaris Operating System, usually known simply as Solaris, is a free Unix-based operating system introduced by Sun Microsystems .

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
Find total size for some files? helen008 UNIX for Dummies Questions & Answers 5 06-09-2008 09:01 AM
Total file size of a subset list tekster757 UNIX for Dummies Questions & Answers 3 03-21-2008 09:27 AM
Find the size of a single specific file nortypig Shell Programming and Scripting 3 08-22-2006 05:00 AM
How to find the total size of a dirctory tree in Solaris 0ktalmagik Filesystems, Disks and Memory 1 05-06-2006 06:31 AM
How to test for a specific file size GEBRAUN UNIX for Dummies Questions & Answers 1 02-20-2006 07:50 AM

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 08-08-2007
Registered User
 

Join Date: Aug 2007
Posts: 2
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...
Reply With Quote
Forum Sponsor
  #2 (permalink)  
Old 08-08-2007
zazzybob's Avatar
Registered Geek
 

Join Date: Dec 2003
Location: Melbourne, Australia
Posts: 2,100
Something like this?
Code:
# du -ks /usr/local/jboss4/bin /usr/local/jboss4/server /var/log/jboss | awk '{c+=$1} END {printf "%s KB\n", c}'
1646356 KB
Cheers
ZB
Reply With Quote
  #3 (permalink)  
Old 08-08-2007
Registered User
 

Join Date: Aug 2007
Posts: 2
zazzy plz chk this out...

zazzy...
i will tell u in detail...
in /temp area we have some specific application files residing these get generated whenever the application executes... all these files are residing recursively in /temp area...
now i want to know how much size these files are aquiring on the server...
the file type is something like this

*._*

example:
/temp/unix_temp1._01
/temp/abc/unix_temp1._02
/temp/abc/xyz/unix_temp5.__1
/temp/abc/xyz/mno/unix_temp6.__6
/temp/def/unix_temp7._03
/temp/def/ghi/unix_temp9.__5
Reply With Quote
  #4 (permalink)  
Old 08-08-2007
zazzybob's Avatar
Registered Geek
 

Join Date: Dec 2003
Location: Melbourne, Australia
Posts: 2,100
Code:
$ find /temp -name "*._*" -print0 | xargs -0 du -ks | awk '{c+=$1} END {printf("%s KB\n", c )}'
192 KB
Cheers
ZB
Reply With Quote
Google UNIX.COM
Reply

Thread Tools
Display Modes




All times are GMT -7. The time now is 10:43 AM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited.
The UNIX and Linux Forums Content Copyright ©1993-2008 The CEP Blog All Rights Reserved -Ad Management by RedTyger Visit The Global Fact Book

Content Relevant URLs by vBSEO 3.2.0