How to Check Which Child Directory is consuming More Space in Unix/Linux?

advertisements

_____________________________________________________________________________________________________________________

The Eucharistic Miracles of the World

In many cases as a DBA or Unix admin you have to find out which directory is consuming more space. Probably in some directories consuming more space because of huge log files or some trace files.
You can identify the directory with du command. du (disk usage) –s option will give the size of each directories in particular directory. You can drill down to the child directories using the same command itself.

du –sk * size in Kilo bytes
du –sh * size in Giga bytes

$ du -sk *
134716912       app
16      lost+found
8       Medios
6839528 rcps
404     revisar.txt
7607988 RMAN

Size in GB
$ du -sh *
129G    app
16K     lost+found
8.0K    Medios
6.6G    rcps
404K    revisar.txt
7.3G    RMAN

_____________________________________________________________________________________________________________________

Website Stats

0 comments:

Post a Comment

Labels

Oracle (629) Script (86) General (77) Unix (47) Blog (23) Technology (19) gadget (6) games (6) Business (3) OCI (3) SQL* Loader (3) Datapump (2)
 

acehints.com Copyright 2011-23 All Rights Reserved | Site Map | Contact | Disclaimer