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=""
|
DIR=""
|
||||||
|
|
||||||
[ $# -eq 1 ] && DIR=$1
|
du "$@" | sort -g
|
||||||
|
|
||||||
du $DIR | sort -g | less
|
|
||||||
|
|
|
||||||
|
|
@ -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
Add a link
Reference in a new issue