From 60f98716c2fa3d047da663e05c97a90414957d16 Mon Sep 17 00:00:00 2001 From: Tim van Veenendaal Date: Thu, 4 Aug 2016 11:14:39 +0200 Subject: [PATCH] Alias restructuring and updated diskspace alias to sort properly --- bash/.bash_aliases | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/bash/.bash_aliases b/bash/.bash_aliases index 7c2dae1..98fe0e5 100644 --- a/bash/.bash_aliases +++ b/bash/.bash_aliases @@ -9,15 +9,9 @@ alias l.='ls -d .* --color=auto' # Find all folders alias lsf="ls -alF | grep /$" -# This is GOLD for finding out what is taking so much space on your drives! -alias diskspace="du -Sh | sort -n -r |more" - # Command line mplayer movie watching for the win. #alias mp="mplayer -fs" -# Show me the size (sorted) of only the folders in this directory -alias folders="find . -maxdepth 1 -type d -print | xargs du -sk | sort -rn" - # Easy move up directories alias ..="cd .." alias ...="cd ../.." @@ -72,5 +66,11 @@ alias df='df -H' alias du='du -ch' alias du1='du -ch -d 1 | sort -rh' +# This is GOLD for finding out what is taking so much space on your drives! +alias diskspace="du -Sh | sort -rh |more" + +# Show me the size (sorted) of only the folders in this directory +alias folders="find . -maxdepth 1 -type d -print | xargs du -sk | sort -rn" + # Show all disks, partitions with sizes alias lds='sudo lsblk -o NAME,FSTYPE,SIZE,MOUNTPOINT,LABEL'