04-06-2009
To output the 10 largest directories in /, sorted in ascending size order, use the following command:
du -ko /|sort -n | tail -10
To find all plain files (not block, character, symbolic links, and so on) in a / file system larger than 1,000 512-byte blocks (approximately 500 Kbytes) and sort on field 7 (file size) while numerically ignoring leading blanks, do this:
find / -size +1000 -type f -ls | sort -k 7,7 -n
10 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
Hello,
Can someone please tell me which command to use to determine the available disk space on a given disk device?
I have to write a shell script that compresses files and stores them in a specific location but I am not sure how "conservative" I should be?
Thanks in advance!
Al. (4 Replies)
Discussion started by: alan
4 Replies
2. Solaris
Hi,
I'm using sun solaris. Using df -h I have the following:
Filesystem size used avail capacity Mounted on
/dev/md/dsk/d2 12G 7.1G 4.6G 61% /
/proc 0K 0K 0K 0% /proc
mnttab 0K 0K 0K 0% ... (5 Replies)
Discussion started by: HSN
5 Replies
3. UNIX for Advanced & Expert Users
I am not very good at UNIX and seek help here. I tried to install Oracle 10g on a 64 bit Sun sparc machine with solaris 10 as OS. After I installed solaris 10, the current file system on the machine looks like this:
/dev/dsk/c0t0d0s0 5104758 4854293 199418 97% /
/devices ... (2 Replies)
Discussion started by: duke0001
2 Replies
4. Solaris
In linux df is the command to find free space what is the equivalent command in the Solaris (2 Replies)
Discussion started by: harishankar
2 Replies
5. Programming
How to get free disk space size in C/C++ program( Solaris system)?
Is there any standard function or system function? Just like "df" or
"getdfree" in Linux. (4 Replies)
Discussion started by: yidu
4 Replies
6. Shell Programming and Scripting
Hi,
I have a question regarding finding free space on the disk of a solaris machine.
Many mount points are available in my machine. Right now i am using
df -b option to get the free disk space available.
I have an assignment to check free space on the disk.
I pass the directory as a... (3 Replies)
Discussion started by: raghu.amilineni
3 Replies
7. Solaris
Hi All,
My Solaris 8 firewall server is getting full on the / filesystem. I don't know which one should I delete. I think there's no more to delete on the file like logs or temp file.
Does someone knows about deleting a safe file (or folder) on FS like /usr, /opt, /platform, /kernel, /sbin?... (7 Replies)
Discussion started by: itik
7 Replies
8. Solaris
I have 2 hard disks ,one hard disk(40gb) completely for windows Os,and the other(120gb) for solaris Os.
In the second hard disk.I have utilised around 10gb for the solaris installation and also partitioned with the available 10gb space for the solaris x86 OS.
Now i need to utilise the... (8 Replies)
Discussion started by: jayaprakash
8 Replies
9. Solaris
I have a solaris 10 system configured using NetApp as its storage, and the file systems are already configured as you can see from the example below:
root@moneta # df -h
Filesystem size used avail capacity Mounted on
/dev/md/dsk/d0 9.8G 513M 9.3G 6% /
... (0 Replies)
Discussion started by: fretagi
0 Replies
10. Solaris
While getting the total disk space in solaris machine using df -k command, i am getting the same disk info for every user available in that system.
Is there any way to remove it.
Filesystem 1024-blocks Used Available Capacity Mounted on
rpool/ROOT/solaris 573898752... (3 Replies)
Discussion started by: prasankn
3 Replies