Command used for checking space occupied by files & sub-direc's inside a mount in %?


 
Thread Tools Search this Thread
Operating Systems Solaris Command used for checking space occupied by files & sub-direc's inside a mount in %?
# 1  
Old 01-28-2008
Command used for checking space occupied by files & sub-direc's inside a mount in %?

Hi,

I want to know the command which can be used for finding the % of disk space occupied by files & sub-folders inside a given mount in Sun Solaris

For eg: I have /tmp/ folder when I sat df -k it will give the percentage of space used by /tmp/.

Say if I want to see how much % the files & sub-directories inside /tmp/ occupy, How do I do that?

- -

Weblogic Support
# 2  
Old 01-28-2008
The "du" (disk usage) command would be a good start.
# 3  
Old 02-01-2008
du -hd is quite useful. It will give human readable sizes of each subfolder on the specified filesystem and then a sub-total.

Very useful to find how much space the "/" root filesystem and sub-folders hold, e.g. du -hd /
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Searching for a string in .PDF files inside .RAR & .ZIP archives.

Hi, I have got a large number of .PDF files that are archived in .RAR & ZIP files in various directories and I would like to search for strings inside the PDF files. I would think you would need something that can recursively read directories, extract the .RAR/.ZIP file in memory, read the... (3 Replies)
Discussion started by: lewk
3 Replies

2. UNIX for Advanced & Expert Users

Checking the space for /archlog mount point script

I have the below shell script which is checking /archlog mount point space on cappire(solaris 10) server. When the space usage is above 80% it should e-mail. When i tested this script it is working as expected. #!/usr/bin/ksh export MAIL_LIST="tlr.voora@zamn.com" export ARCH_STATUS=`df -k... (1 Reply)
Discussion started by: dreams5617
1 Replies

3. Shell Programming and Scripting

Checking the space for /archlog mount point script

I have the below shell script which is checking /archlog mount point space on cappire(solaris 10) server. When the space usage is above 80% it should e-mail. When i tested this script it is working as expected. -------------------------------------------------------------------------... (0 Replies)
Discussion started by: dreams5617
0 Replies

4. UNIX for Dummies Questions & Answers

write a program in c in unix that display the files(includ sub-direc and files within) in a sorted

the sorting is based on name of file, file size modification time stamps o f file it should dislay the output in the following format "." and ".." enteries should be ignored please give some idea how to do it (1 Reply)
Discussion started by: pappu kumar jha
1 Replies

5. Shell Programming and Scripting

if condition for files older then 24 hours in direc

Hi all I have directory /tmp and i have logs are written in it every 18 to 20 hours in date format. now i need write some if condition which can find which files came into /tmp dir with name start from LOG_`date`.log in last 24 hours. can somebody help me on this. (2 Replies)
Discussion started by: tapia
2 Replies

6. UNIX for Dummies Questions & Answers

Display all directory/sub directory with occupied space?

Hello, I am using Red Hat linux system. I see my /work directory has used space 300GB. But there are so many sub directory under /work. I want to list each direcotry and under all subdirectory. But i want to know how much space occupied by each directory. What kind of command i can use to... (3 Replies)
Discussion started by: govindts
3 Replies

7. UNIX for Dummies Questions & Answers

Space occupied by core

Guys, Can some one help me? I need to find the total percent of space occupied by core files on my unix system. I know df -k will give me the percent space utilization for a directory but how do we replicate the space for a file? (3 Replies)
Discussion started by: yabhi_22
3 Replies

8. Shell Programming and Scripting

script to display occupied and non occupied ports in unix

I want to extend this script. This must also be able to show me that a port is already assigned to a service but not running now there must be three different messages port 8949 is open but not listening port 8959 is open port 8999 hasn't been assigned to any service. I know that... (1 Reply)
Discussion started by: charan314
1 Replies

9. UNIX for Dummies Questions & Answers

Problem in checking space of mount.Please help me

Hi everyone, I am writing a script. As a part of this script, I wanted to check the space of few mounts, If the space usage percentage of the mount crosses over a certain limit then i wanted to display a warning message. The following is the command df -k | awk ' { if (($6 == "/export/temp")... (4 Replies)
Discussion started by: Sheethal
4 Replies

10. AIX

command for checking temperature & humidity.

what're commands I can use to check temperature and humidity of AIX machine? (0 Replies)
Discussion started by: pattarapongn
0 Replies
Login or Register to Ask a Question