11-18-2011
Thanks man! Made my day!
10 More Discussions You Might Find Interesting
1. HP-UX
Hi All
I want to plan my backups, but 1st i would like to know what is the size of each directory. Is there any command which can show me the size of directories?
Regards (2 Replies)
Discussion started by: cgege
2 Replies
2. Shell Programming and Scripting
Hi,
I would really apprciate it if someone expert in shell, "shell guru" scripting can help me.
with a shell command how can I create directories and populate on basis of size.
Before I confuse you, let me tell you the scenerio.
We take hot database backup of oracle on disk, and... (0 Replies)
Discussion started by: amitoverseas40
0 Replies
3. UNIX for Dummies Questions & Answers
$ls -lrt mydir
total 12
drwxrwxrwx 2 nobody nobody 512 Aug 8 11:51 tmp
drwxrwxrwx 2 nobody nobody 4608 Jan 19 12:20 web.cache
$ ls -lrt mydir/web.cache/
total 0
$ ls -lrt mydir/tmp/
total 0
Can anyone explain me the above results? I know the o/p of ls, but this... (3 Replies)
Discussion started by: rahulrathod
3 Replies
4. Shell Programming and Scripting
hai,
i am new to unix scripting & learning unix scripting and doing some assignments....
i have an assignment as follows,
i want to check the size of the text file and .ext files in all directories,
if any one of them is greater than 100mb , i have to display those files..
... (2 Replies)
Discussion started by: G.K.K
2 Replies
5. Shell Programming and Scripting
Hi,
I am new to Unix.
I want to display top 10 folders by size.
I tried with
du -ksl * | sort -nr | head -10
command .But I am getting the following error
-bash: /usr/bin/du: Argument list too long
Can some one help me.
Thanks. (5 Replies)
Discussion started by: Satyak
5 Replies
6. Shell Programming and Scripting
Hi,
how to know the size of the files in the directory, exclusing the subfolder. ?
i tried du -h
du -sk
du -k
but its not giving.. (2 Replies)
Discussion started by: mail2sant
2 Replies
7. Shell Programming and Scripting
Hi ,
I am very new to unix as well as shell scripting. I have to write a script for the following requirement.
In a particular mount, have to list all the directories and sub directories along with size of the directory and sub directory in ascending order.
Please help me in this regard and many... (4 Replies)
Discussion started by: nmakkena
4 Replies
8. UNIX for Dummies Questions & Answers
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
9. UNIX for Advanced & Expert Users
Hi Gurus,
I know this sounds weird, We have encountered many incidents where some directories on several Solaris 10 boxes, will be converted to files with the same size. for example the file below :
-rw-r--r-- 1 rkadm redknee 5027399 Apr 15 00:02 dump
This was a directory created... (5 Replies)
Discussion started by: aladdin
5 Replies
10. Shell Programming and Scripting
Hello,
I'm trying to find top 5(highest) directories by size. I did something like du -sh * > $file
Where I can get all the size with respect to directories, but I need only top 5 directory from the file. How can I sort by size in the file and print top 5 sizes with the directory name???
... (3 Replies)
Discussion started by: pjeedu2247
3 Replies
LEARN ABOUT FREEBSD
makewhatis
MAKEWHATIS(1) BSD General Commands Manual MAKEWHATIS(1)
NAME
makewhatis -- create whatis database
SYNOPSIS
makewhatis [-a] [-i column] [-n name] [-o file] [-v] [-L] [directories ...]
DESCRIPTION
The makewhatis utility collects the names and short descriptions from all the unformatted man pages in the directories and puts them into a
file used by the whatis(1) and apropos(1) commands. Directories may be separated by colons instead of spaces. If no directories are speci-
fied, the contents of the MANPATH environment variable will be used, or if that is not set, the default directory /usr/share/man will be pro-
cessed.
The options are as follows:
-a Appends to the output file(s) instead of replacing them. The output will be sorted with duplicate lines removed, but may have
obsolete entries.
-i column Indents the description by column characters. The default value is 24.
-n name Uses name instead of whatis.
-o file Outputs all lines to the file instead of */man/whatis.
-v Makes makewhatis more verbose about what it is doing.
-L Process only localized subdirectories corresponding to the locale specified in the standard environment variables.
ENVIRONMENT
LC_ALL, LC_CTYPE, LANG
These variables control what subdirectories will be processed if the -L option is used.
MACHINE If set, its value is used to override the current machine type when searching machine specific subdirectories.
MACHINE_ARCH
If set, its value is used to override the current architecture when searching architecture specific subdirectories.
MANPATH Determines the set of directories to be processed if none are given on the command line.
FILES
/usr/share/man Default directory to process if the MANPATH environment variable is not set.
*/man/whatis The default output file.
EXIT STATUS
The makewhatis utility exits 0 on success, and >0 if an error occurs.
SEE ALSO
apropos(1), whatis(1)
HISTORY
The makewhatis command appeared in FreeBSD 2.1.
AUTHORS
The makewhatis program was originally written in Perl and was contributed by Wolfram Schneider. The current version of makewhatis was
rewritten in C by John Rochester.
BSD
December 3, 2005 BSD