Sponsored Content
Operating Systems Linux Debian Finding out size of sub-directory Post 302999069 by RudiC on Tuesday 13th of June 2017 03:43:59 AM
Old 06-13-2017
Did you consider the du (disk usage) command?
This User Gave Thanks to RudiC For This Post:
 

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

finding duplicate files by size and finding pattern matching and its count

Hi, I have a challenging task,in which i have to find the duplicate files by its name and size,then i need to take anyone of the file.Then i need to open the file and find for more than one pattern and count of that pattern. Note:These are the samples of two files,but i can have more... (2 Replies)
Discussion started by: jerome Sukumar
2 Replies

2. UNIX for Dummies Questions & Answers

Need help in finding Folder Size

Hi, I would like to find the size of a folder. When I run the command du -k It is going through all the sub-folder and files and taking really much time. Is there any command to get the complete directory size without showing the sub-folder and file size. Appreciate your response. ... (3 Replies)
Discussion started by: TonySolarisAdmi
3 Replies

3. Solaris

Finding out the memory size via the iLOM

I would like to know if it is possible to find out how much memory is in a machine from the iLOM prompt on an x86 box? I have retrieved the MAC address details from the iLOM promt before using show /SYS/MB/NETx and wondering if I can do the same for the Memory although I can't seem to find anything... (4 Replies)
Discussion started by: Chains
4 Replies

4. Solaris

Directory size larger than file system size?

Hi, We currently have an Oracle database running and it is creating lots of processes in the /proc directory that are 1000M in size. The size of the /proc directory is now reading 26T. How can this be if the root file system is only 13GB? I have seen this before we an Oracle temp file... (6 Replies)
Discussion started by: sparcman
6 Replies

5. Shell Programming and Scripting

Finding directory and sub-directories individual size in Perl

Hi, Can anyone redirect to an existing thread or provide some info on how to find the size of a directory and it's sub-directories using a single script ? I tried finding a similar thread but in vain. I'm a newbie and any help would be greatly appreciated. Thanks in advance. (3 Replies)
Discussion started by: ryder
3 Replies

6. UNIX for Dummies Questions & Answers

Finding size of all directories

Alright so I've tried a couple different things that at first glance, looked like they worked. find . -maxdepth 5 -type d -daystart -mtime 1 | xargs du -h Which seems to ignore the previous commands such as depth and modified time. find .. -maxdepth 2 -type d -daystart -ctime 1 | xargs... (8 Replies)
Discussion started by: Aussiemick
8 Replies

7. Shell Programming and Scripting

finding max size

Hi I have a list of 2000 records with multiple entries and I want to get the max size for each entry ABC 1 ABC 2 ABC 3 ABC 4 DEF 1 DEF 2 DEF 2 DEF 2 DEF 2 ... (9 Replies)
Discussion started by: Diya123
9 Replies

8. Shell Programming and Scripting

How to delete some of the files in the directory, if the directory size limits the specified size

To find the whole size of a particular directory i use "du -sk /dirname".. but after finding the direcory's size how do i make conditions like if the size of the dir is more than 1 GB i hav to delete some of the files inside the dir (0 Replies)
Discussion started by: shaal89
0 Replies

9. UNIX for Advanced & Expert Users

Command for finding RAM size in HP-UX

I am trying to find RAM size in my HP-UNIX server. what command I should use for this? I am using top command but not clear about below line from top o/p Memory: 1517080K (471284K) real, 1877692K (751256K) virtual, 8078944K free Page# 1/6 (3 Replies)
Discussion started by: venkatababu
3 Replies

10. UNIX for Dummies Questions & Answers

Ls directory size reporting byte size instead of file count

I have been searching both on Unix.com and Google and have not been able to find the answer to my question. I think it is partly because I can't come up with the right search terms. Recently, my virtual server switched storage devices and I think the problem may be related to that change.... (2 Replies)
Discussion started by: jmgibby
2 Replies
chfsets(8)						      System Manager's Manual							chfsets(8)

NAME
chfsets - Changes limits for fileset quotas SYNOPSIS
/sbin/chfsets [-F limit] [-f limit] [-B limit] [-b limit] domain [fileset...] OPTIONS
Specifies the file usage soft limit (quota) of the fileset. Specifies the file usage hard limit (quota) of the fileset. Specifies the block usage soft limit (quota) in 1K blocks of the fileset. Specifies the block usage hard limit (quota) in 1K blocks of the fileset. OPERANDS
Specifies the name of the file domain. Specifies the name of one or more filesets. DESCRIPTION
The chfsets command enables you to change fileset quotas (file usage limits and block usage limits) of any AdvFS fileset. Filesets can have both soft and hard disk storage and file limits. When a hard limit is reached, no more disk space allocations or file creations which would exceed the limit are allowed. The soft limit may be exceeded for a period of time (called the grace period). The grace periods for the soft limits are set with the edquota command. The command also displays the changes made to the file and block usage limits. Note that the root user can exceed fileset quotas. The chfsets command displays the following fileset information: Id A unique number (in hexadecimal format) that identifies a file domain and fileset. File H limit The file usage hard limit of the specified fileset before the change followed by the new limit. Block H limit The block usage hard limit of the specified fileset before the change followed by the new limit. File S limit The file usage soft limit of the specified fileset before the change followed by the new limit. Block S limit The block usage soft limit of the specified fileset before the change followed by the new limit. Use the following commands to manipulate filesets: Displays the limits and actual number of blocks used by a fileset. Displays space usage for the specified domain. Displays the file and block usage limits for the filesets in a domain. Changes the user or group block and file limits and grace period. Turns on and off quota enforcement. For more information, see the reference pages for each command. RESTRICTIONS
At least one fileset within the domain must be mounted for the chfsets command to succeed. You must be the root user to run the chfsets command. EXAMPLES
The following example changes the file hard limit from 11 to 200 and block hard limit from 121 to 1000 for the credit_fs fileset in the account_dmn domain: # chfsets -b 1000 -f 200 account_dmn credit_fs credit_fs Id : 2c2f557f.000b15f4.3.8004 File H limit : 11 --> 200 Block H limit : 121 --> 1000 EXIT STATUS
The utility returns a 0 (zero) on success and a 1 (one) on failure. SEE ALSO
Commands: df(1), edquota(8), quotaon(8), quotaoff(8), showfdmn(8), showfsets(8) chfsets(8)
All times are GMT -4. The time now is 05:45 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy