From 8bec8cccabd6478df9420cd9b19f8f6d6cd21cd4 Mon Sep 17 00:00:00 2001 From: Felix Buehler Date: Mon, 18 Jun 2018 18:30:53 +0200 Subject: [PATCH] [shell/aliases] add sort-by-size --- shell/aliases.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/shell/aliases.sh b/shell/aliases.sh index 2ac040e..835061d 100755 --- a/shell/aliases.sh +++ b/shell/aliases.sh @@ -134,5 +134,5 @@ dpms(){ # - likely to experience if connected via wifi and ethernet # - xargs it to nmap at the end alias snet="ip addr | \\grep -v "inet6" | \\grep inet | cut -d \" \" -f 6 | \\grep -v '127\\.0\\.[0-1]\\.[0-1]' | xargs -n 1 ipcalc | awk '/Network:/{print \$2}' | sort -u | xargs nmap" - +alias sort-by-size="du -hsc * | sort -hk1" #END alias-definitions