Sponsored Content
Full Discussion: Disk Usage
Top Forums Shell Programming and Scripting Disk Usage Post 302132238 by harikamamidala on Thursday 16th of August 2007 03:37:12 AM
Old 08-16-2007
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
 

10 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

disk usage

what are the ways to check the disc usage by users. I mean to say how to find the biggest space consumer. Regards. (4 Replies)
Discussion started by: asutoshch
4 Replies

2. UNIX for Dummies Questions & Answers

Disk Usage

Im using solaris 8 on a Sunfire 280r. Is there a command to show you how much disk space is being used in gigabytes or megabytes. I dont think theres an option for this using the df command. not for solaris anyway. thanks (3 Replies)
Discussion started by: lewisoco
3 Replies

3. UNIX for Dummies Questions & Answers

disk usage

how to i find out the disk usage on a server. say in windows examples its like C:/ D:/ and checking out the disk space. how can i find in Unix. can i just use df -k or should i go to each volume group and find that way. plz respond (2 Replies)
Discussion started by: karthikosu
2 Replies

4. Shell Programming and Scripting

disk usage

Hi ,.. I am working on a script like.... it has to monitor the disk usage (df -H) and if usage is above 95% then it has to return the particular mount point details... i am in confusion to use awk or sed..... regards rrs (1 Reply)
Discussion started by: rrs
1 Replies

5. Shell Programming and Scripting

disk usage

fdisk -l shows me the total disk size. How can I see, how much disk space is free or available? (5 Replies)
Discussion started by: tjay83
5 Replies

6. Shell Programming and Scripting

disk usage

Hi If the disk space is running low in the home directories, and I cannot add more disk space at the moment. How can I determine who is using the most disk space? (4 Replies)
Discussion started by: tjay83
4 Replies

7. HP-UX

how can I find cpu usage memory usage swap usage and logical volume usage

how can I find cpu usage memory usage swap usage and I want to know CPU usage above X% and contiue Y times and memory usage above X % and contiue Y times my final destination is monitor process logical volume usage above X % and number of Logical voluage above can I not to... (3 Replies)
Discussion started by: alert0919
3 Replies

8. Solaris

current CPU usage, memory usage, disk I/O oid(snmp)

Hi, I want to monitor the current cpu usage, monitor usage , disk I/o and network utlization for solaris using SNMP. I want the oids for above tasks. can you please tell me that Thank you (2 Replies)
Discussion started by: S_venkatesh
2 Replies

9. UNIX for Dummies Questions & Answers

Disk Usage

Hi, I have always felt problems using commands to check disk usage, or I should say I might not be using the commands properly. dfspace and free are 2 most frequent command that I use, but the data that it echoes is not comprehandable atleast to me.:wall::wall::wall::wall::wall: I want... (4 Replies)
Discussion started by: TH3M0Nk
4 Replies

10. UNIX for Beginners Questions & Answers

Disk usage monitoring and record the disk used in last 24 hour

HI I am Trying to edit the below code to send email every day with difference of disk utilized in for last 24 hours but instead getting same usage everyday. can you please help me to point out where my calculation is going wrong. Thank you. ================= #!/bin/bash TODAY="at $(date... (0 Replies)
Discussion started by: Mi4304
0 Replies
FS_SETVOL(1)						       AFS Command Reference						      FS_SETVOL(1)

NAME
fs_setvol - Set quota and messages for a volume containing a file or directory SYNOPSIS
fs setvol [-path <dir/file path>+] [-max <disk space quota in 1K units>] [-offlinemsg <offline message>] [-help] fs setv [-p <dir/file path>+] [-ma <disk space quota in 1K units>] [-o <offline message>] [-h] fs sv [-p <dir/file path>+] [-ma <disk space quota in 1K units>] [-o <offline message>] [-h] DESCRIPTION
The fs setvol command sets the quota (maximum possible size) of the read/write volume that contains each directory or file named by the -path argument. To associate a message with the volume which then appears in the output of the fs examine command, include the -offlinemsg argument. To display all of the settings made with this command, use the fs examine command. The fs listquota command reports a fileset's quota, and the fs quota command the percent of quota used. To set quota on one volume at a time, use the fs setquota command. CAUTIONS
Currently, the maximum size of a volume is 2 terabytes (2^31 bytes). OPTIONS
-path <dir/file path>+ Names each file or directory for which to set the host volume's quota and offline message. Partial pathnames are interpreted relative to the current working directory, which is also the default value if this argument is omitted. Specify the read/write path to the file or directory, to avoid the failure that results from attempting to change a read-only volume. By convention, the read/write path is indicated by placing a period before the cell name at the pathname's second level (for example, /afs/.abc.com). For further discussion of the concept of read/write and read-only paths through the filespace, see the fs mkmount reference page. -max <disk space quota in 1K units> Sets the maximum amount of file server disk space the volume can occupy. Provide a positive integer to indicate the number of one- kilobyte blocks (1024 is one megabyte). A value of 0 sets an unlimited quota, but the size of the disk partition that houses the volume places an absolute limit on the volume's size. If the -path argument is omitted (so that the command sets the quota of the volume housing the current working directory), the -max switch must be provided. -offlinemsg Associates a message with the volume which then appears in the output of the fs examine command. Its intended use is to explain why the volume is currently offline. -help Prints the online help for this command. All other valid options are ignored. EXAMPLES
The following command imposes a 6500 kilobyte quota on the volumes mounted at the home directories /afs/abc.com/usr/smith and /afs/abc.com/usr/pat: % cd /afs/abc.com/usr % fs setvol -path smith pat -max 6500B<> PRIVILEGE REQUIRED
The issuer must belong to the system:administrators group. SEE ALSO
fs_examine(1), fs_listquota(1), fs_mkmount(1), fs_quota(1), fs_setquota(1) COPYRIGHT
IBM Corporation 2000. <http://www.ibm.com/> All Rights Reserved. This documentation is covered by the IBM Public License Version 1.0. It was converted from HTML to POD by software written by Chas Williams and Russ Allbery, based on work by Alf Wachsmann and Elizabeth Cassell. OpenAFS 2012-03-26 FS_SETVOL(1)
All times are GMT -4. The time now is 08:50 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy