need only one script to find the directory with most usage
Signed-off-by: Nico Schottelius <nico@denkbrett.schottelius.org>
This commit is contained in:
parent
cca4aca88b
commit
7c0ca71ed4
2 changed files with 1 additions and 15 deletions
|
@ -5,6 +5,4 @@
|
|||
|
||||
DIR=""
|
||||
|
||||
[ $# -eq 1 ] && DIR=$1
|
||||
|
||||
du $DIR | sort -g | less
|
||||
du "$@" | sort -g
|
||||
|
|
|
@ -1,12 +0,0 @@
|
|||
#!/bin/sh
|
||||
# Nico Schottelius, 2004
|
||||
# find biggest directories
|
||||
|
||||
#VDEV="/proc /sys /dev/pts /dev" # this is double
|
||||
VDEV="/proc /sys"
|
||||
|
||||
DIR=/
|
||||
|
||||
[ $# -eq 1 ] && DIR=$1
|
||||
|
||||
du --max-depth=1 "$DIR" | sort -n
|
Loading…
Add table
Reference in a new issue