![]() |
|
|
google unix.com
|
|||||||
| Forums | Register | Forum Rules | Links | Albums | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| Shell Programming and Scripting Post questions about KSH, CSH, SH, BASH, PERL, PHP, SED, AWK and OTHER shell scripts and shell scripting languages here. |
More UNIX and Linux Forum Topics You Might Find Helpful
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| disk usage (df vs du) | gfhgfnhhn | UNIX for Advanced & Expert Users | 8 | 09-23-2006 09:06 PM |
| disk usage | karthikosu | UNIX for Dummies Questions & Answers | 2 | 06-29-2006 04:48 PM |
| Disk Usage | lewisoco | UNIX for Dummies Questions & Answers | 3 | 05-09-2006 09:44 PM |
| Disk usage (Mac OS 10.4) | H1tokori | UNIX for Dummies Questions & Answers | 5 | 12-05-2005 07:37 PM |
| disk usage | asutoshch | UNIX for Dummies Questions & Answers | 4 | 04-01-2001 09:02 AM |
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
||||
|
Disk Usage
Hi,
I want to retrieve the directory in the shell script that is using maximum space on the disk.I was using du command but it displays all the directories that are using the space on the disk.How can retrieve the only directory which uses the maximum space on the disk?? Thanks in advance. Regards, Harika Mamidala |
|
||||
|
Hi,
Thanks for ur reply.I am able to get the directory name thats occupying the maximum space using .. ls |du -sk * | sort -n | tail -1 | cut -f2 Is there anyway that I can get the directory that uses more than 80% of the disk space instead of mentioning the directory that uses the maximum space. Thanks & Regards, Harika Mamidala |
![]() |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|