Well, I have to say that there may be a more practical way of doing what you want... I mean, why not just have something which prunes away files that are over say 30-days old?...
Something like:
NOTE: You will want to test this because I haven't (!!!!!).... It's just an idea...
What utility (or combination of utilities) can I use to find out how much disk space a directory and its subdirectories take up.
I currently am using 'df' to see partition space/size,
'ls' doesn't seem like displaying directory info
TIA
SmartJuniorUnix (2 Replies)
Can someone tell me how I can determine how much space (blocks) have been used by a given directory tree?
I periodically need to know how much space is consumed by a directory and all of its files and subdirectories and their files in either KB or blocks. I have tried df and du but these do not... (1 Reply)
I know very basic Unix commands s I would really appreacite the assistance of a Unix guru.
I am installing an application on a Sun server, when attempting to install I get an error that says I do not have enough sapce allocated for my install directory. Error says it has 7235m but needs 15360m.... (2 Replies)
Hi,
How can I check whether a directory has enough space to create file? I have checked the space is availabe in the file system.
For example: the directory /var/tmp resides in root file system. In the root file system currently 20% (5.5gb) space availabe. but how can I check the in the /var/tmp,... (1 Reply)
We applied updates on saturday and noted that we have used 97% of our /boot directory. How can I tell what files i can keep or get rid of in this directory? or how can I increase the size of this partition.
Red Hat Enterprise Linux ES release 3 (Taroon Update 9)
2.4.21-57.ELsmp
Thank... (4 Replies)
I need to add space to certain directory. I believe I need to add space to the filesystem this directory belongs to. How can I find out what filesystem this directory belongs to? (3 Replies)
Hello,
I am using Red Hat linux system. I see my /work directory has used space 300GB. But there are so many sub directory under /work. I want to list each direcotry and under all subdirectory. But i want to know how much space occupied by each directory. What kind of command i can use to... (3 Replies)
I have two servers in subject, say server1 and server2. I have shell scripts on server1. We have a directory on server2 from where the files need to be scp to server1.
The directory on server2 is having space in its name.
I have script on server1 that takes the directory path of server2 as a... (4 Replies)
Discussion started by: Longfellow
4 Replies
LEARN ABOUT OSF1
dohash
dohash(8) System Manager's Manual dohash(8)NAME
dohash, undohash - Hashes or unhashes IMAP configuration directories
SYNOPSIS
/usr/sbin/dohash [-f] [-h] [-i]
/usr/sbin/undohash
OPTIONS
The following options are available only for the dohash command: Forces the hashing process to continue even if the command encounters
errors. Prints a usage message for the command. Runs the hashing process interactively.
DESCRIPTION
The dohash command converts the IMAP configuration directories from the format for older versions of the Cyrus IMAP4 Revision 1 server to
the new format for Version 1.6.1 or higher.
Starting with Version 1.6.1 of the server, the IMAP user files in the quota and user directories are stored in a through z subdirectories,
sorted by the first character of each user name. This arrangement reduces the number of entries in a given directory and consequently
increases performance and scalability. The dohash command creates the a through z subdirectories and sorts the existing IMAP files as
described; the undohash command reverses this process, in case you need to revert to a previous version of the server.
You can optionally sort the users' directories in the IMAP mail spool in the same manner if you enable the hashimapspool option in the
/etc/imapd.conf file before invoking the dohash command. See imapd.conf(4) for more information.
Note that you must be logged in as the imap user to use the dohash command; otherwise, the newly-created subdirectories will not have the
proper ownership.
EXAMPLES
The following example shows output from the dohash command: # /usr/sbin/dohash configuration directory /var/imap... hashing user directory
hashing quota directory done hashing
In this example, the configuration directory is /var/imap; therefore, you could check that the dohash command has successfully hashed the
directories by using the ls command as follows: # ls /var/imap/quota /var/imap/user /var/imap/quota: a b c d e f g h i j k l m
n o p q r s t u v w x y z
/var/imap/user: a b c d e f g h i j k l m n o p q r s t u v w x y z
The slash () indicates line continuation.
FILES
Configuration file for the IMAP server. Specifies the location of the IMAP configuration directory.
SEE ALSO
Commands: imapd(8)
Files: imapd.conf(4)
Network Administration
dohash(8)