miércoles, 8 de febrero de 2012

Disk capacity Review on UNIX servers

Order files by size on the File system "."

# find . -xdev -ls | awk '{print $7 " "$11}' | sort -rn | more

Which is the lastest modified file.

# ls -ltr

Find files larger than +5000 bytes

# find . -xdev -size +5000 -print
# find . -xdev -size +5000 -exec ls -l {} ";"

Find files according its size.

# du /bin/* | sort -nr

Find larger files

# find . -xdev -ls | awk '{print $7 " "$11}' | sort -rn | more

(reemplazar el / con el path, sino el find corre por todos lados

No hay comentarios:

Publicar un comentario