Sponsored Content
Top Forums Shell Programming and Scripting disk space used in percentage Post 302581747 by urfrnddpk on Wednesday 14th of December 2011 02:19:38 AM
Old 12-14-2011
disk space used in percentage

hello

is there any command so that i can get the percentage space used by a particular directory?
ex : i want to know how much space is used(in percentage) or free in /varsoft/EXAMPLE directory..
 

10 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

Out of disk space?

Hi I'm trying to install gcc and the installation program tells me that I'm out of disk space! I have just installed the os (using the default settings for partitions and sizes) and have only installed apache on the machine. Can it really be out of disk space already? How do I check how much... (4 Replies)
Discussion started by: alfabetman
4 Replies

2. Filesystems, Disks and Memory

Disk space

Can someone tell me how to determine how much disk space has been allocated to me and how much of it I am using? Thanks in advance. (1 Reply)
Discussion started by: jxh461
1 Replies

3. UNIX for Dummies Questions & Answers

available disk space on disk device???

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

4. HP-UX

Disk Space

Hi Experts. I had 100% disk full , even though i have removed 2 GB space still dbf command shows 100%. How to rectify that. Appreciate your prompt help. Thanks (1 Reply)
Discussion started by: test10002
1 Replies

5. Filesystems, Disks and Memory

disk space

Hello All- Am new member to this forum. Have some unix experience. But true believer in it compared to windows. Have a question regarding the disk space. I know a command to check the total disk space utilization using: df -k . but what is the command to check the same disk space by... (6 Replies)
Discussion started by: milkyway
6 Replies

6. Red Hat

disk space

when i check /export directory of my machine gets filled up (85%) i removed some old logs. but after cleaning df -k command still shows that /export is still 85% full. Is there a way to force df to reflect actual free space without rebooting? My machine is a production one and can't... (8 Replies)
Discussion started by: aboorkuma
8 Replies

7. Shell Programming and Scripting

Disk Space

Hi Guys i have a nice little piece of code then i need to modify so that is does not look at /Voulmes/* thanks sub disk_full { my $i = 0; open( DF, "df -l|" ); while (<DF>) { #chomp(); next if (/^\/proc\b/); $i++; next if ( $i == 1 ); ... (3 Replies)
Discussion started by: ab52
3 Replies

8. Shell Programming and Scripting

calculate swap space usage in Solaris and converts it in Percentage

Hi Folks, I am looking for a way to write a script to calculate swap usage in Solaris so that the current usage will be shown in Percentage value. Thanks!! Based on 'swap -s' command # swap -s total: 1378936k bytes allocated + 1236880k reserved = 2615816k used, 2725104k available (2 Replies)
Discussion started by: jaapar
2 Replies

9. UNIX for Dummies Questions & Answers

How much disk space?

Hi, I have this : uname -a Linux servername 2.6.18-194.11.3.el5PAE #1 SMP Mon Aug 23 15:57:10 EDT 2010 i686 i686 i386 GNU/Linux df -k Sys. de fich. 1K-blocs Occupied Disponible Capacity Monted on /u01/applis 10321208 3190160 6606760 33% /applis Does it mean... (1 Reply)
Discussion started by: big123456
1 Replies

10. Solaris

Disk Space

I know there are other threads but they have not helped. My server is running low on disk space and I haven't been able to re-allocate. I think my solaris machine is missing tools or the way it was originally setup, may not have the right pathing. $ df -k Filesystem kbytes used... (5 Replies)
Discussion started by: lnxjenn
5 Replies
DPM-ADDPOOL(1)						    DPM Administrator Commands						    DPM-ADDPOOL(1)

NAME
dpm-addpool - define a new disk pool SYNOPSIS
dpm-addpool --poolname pool_name --def_filesize defsize [ --def_lifetime def_lifetime ] [ --def_pintime defpintime ] [ --gc_start_thresh perc ] [ --gc_stop_thresh perc ] [ --gid pool_gids ] [ --group pool_groups ] [ --help ] [ --max_lifetime max_lifetime ] [ --max_pintime maxpintime ] [ --ret_policy retention_policy ] [ --s_type space_type ] DESCRIPTION
dpm-addpool defines a new disk pool. This command requires ADMIN privilege. OPTIONS
pool_name specifies the disk pool name. It must be at most CA_MAXPOOLNAMELEN characters long. defsize specifies the default amount of space reserved for a file. This is by default in bytes, but the number may also be post-fixed with 'k', 'M' or 'G' for kilobyte, Megabyte and Gigabyte respectively. def_lifetime specifies the default time a space or volatile file is kept in the system (in seconds). defpintime specifies the default time a file is kept on a given disk (in seconds). gc_start_thresh specifies the minimum free space in the pool. If the percentage of free space goes below this value, the garbage collector is started. Default is 0. gc_stop_thresh specifies the percentage of free space in the pool above which the garbage collector is stopped. Default is 0. max_lifetime specifies the maximum time a space or volatile file is kept in the system (in seconds). maxpintime specifies the maximum time a file is kept on a given disk (in seconds). pool_gids if not zero, the disk pool is restricted to this comma separated list of group gids. pool_groups if set and not "ALL", the disk pool is restricted to this comma separated list of group names. retention_policy specifies the retention policy supported by the disk pool. It can be R (for Replica), O (for Output) or C (for Custodial). Default is R. space_type indicates the type of space supported in the disk pool. It can be V (for Volatile), D (for Durable), P (for Permanent) or - (to accept any type). The latter is the default. EXAMPLE
dpm-addpool --poolname Volatile --def_filesize 200M --s_type V EXIT STATUS
This program returns 0 if the operation was successful or >0 if the operation failed. SEE ALSO
dpm(1), dpm_addpool(3) LCG
$Date: 2010-02-05 10:50:58 +0100 (Fri, 05 Feb 2010) $ DPM-ADDPOOL(1)
All times are GMT -4. The time now is 01:48 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy