From 4d4b6e3cca47f3a4b2af69bfd5514e890678436d Mon Sep 17 00:00:00 2001 From: tomit4 Date: Fri, 17 Jun 2022 20:34:24 -0700 Subject: [PATCH] added optimalbufsize alias for determining optimal buffer size for read/write operations --- aliases | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/aliases b/aliases index e8c74c6b..a68e9e3b 100644 --- a/aliases +++ b/aliases @@ -49,7 +49,6 @@ alias kmnt="doas mount /dev/sda /mnt/media/kobo" alias kumnt="doas umount /dev/sda /mnt/media/kobo" alias rm="newrm -vi" alias cal="newcal" -alias {rcrm,rrm}="doas xargs -d\\n rm -r -v" # when piped after locate or find command, recursively removes outputted files alias mv="mv -v" alias ln="ln -i" alias {doasedit,sudoedit}="doas rnano" @@ -180,6 +179,10 @@ alias nb="newsboat" alias sudoku="sku" # pip list and pip freeze command list pip packages +#Particularly useful commands more to remember than to use as alias: +alias optimalbufsize= 'stat -c "%o"' # followed by filename will give you the optimal read/write BUFSIZE for a file +alias {rcrm,rrm}="doas xargs -d\\n rm -r -v" # when piped after locate or find command, recursively removes outputted files + # get top process eating memory alias psmem="ps auxf | sort -nr -k 4 | head -5" # get top process eating cpu