From 054b034d8243437fd86924c9d8a1e8617dcdab26 Mon Sep 17 00:00:00 2001 From: fabian Date: Tue, 21 Jun 2022 23:08:47 +0200 Subject: [PATCH] - use unified alias syntax - added filesystem sizes sorted - added directoriy sizes sorted --- home_external/.bash_aliases | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/home_external/.bash_aliases b/home_external/.bash_aliases index 1fa5ccf..f8d1f5f 100644 --- a/home_external/.bash_aliases +++ b/home_external/.bash_aliases @@ -19,8 +19,10 @@ alias finds='find $* 2>/dev/null' alias c='clear' alias sort_dirs_by_size='du --block-size=1K --human-readable --max-depth=1 | sort --human-numeric-sort --reverse' # 'du -kh --max-depth=1 | sort -hr' alias sd='sudo ' # alias, so sudo can use aliases: "If the last character of the alias value is a blank, then the next command word following the alias is also checked for alias expansion." -alias mountDrive='udisksctl mount -b' -alias unmountDrive='udisksctl unmount -b' +alias mountdrive='udisksctl mount -b' +alias unmountdrive='udisksctl unmount -b' +alias fssizes='df -kh --output=size,used,avail,pcent,target | sort -hr' +alias dirsizes='du -kh --apparent-size --max-depth=1 | sort -hr' # executes command and notifies upon failure