From 5bc648540c68e46fa76367c9028e76cb4fdb58e6 Mon Sep 17 00:00:00 2001 From: Muha Aliss Date: Mon, 21 Aug 2023 04:47:32 +0300 Subject: [PATCH] Quickly edited first file --- bash_aliases | 49 +++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 49 insertions(+) create mode 100644 bash_aliases diff --git a/bash_aliases b/bash_aliases new file mode 100644 index 0000000..bcdd12b --- /dev/null +++ b/bash_aliases @@ -0,0 +1,49 @@ +#DNF alias +alias upd="sudo dnf update" +alias ins="sudo dnf install" +alias rmv="sudo dnf remove" +alias ser="dnf search" + +#History alias +tm () { + FILE=$HOME/.bash_history + if [ -f "$FILE" ]; then + rm $FILE + clear + history -cw + else + echo "Kayıtlı geçmiş yok." + fi + } + +#emacs no gui +alias emacs="emacs -nw $argv" + +## get rid of command not found +alias cd..='cd ..' + +## a quick way to get out of current directory +alias ..="cd .." +alias ...="cd ../../../" +alias ....="cd ../../../../" +alias .....="cd ../../../../" +alias .4="cd ../../../../" +alias .5="cd ../../../../.." + +## Colorize the grep command output for ease of use (good for log files) +alias grep="grep --color=auto" + +#Make mount command output pretty and human readable format +alias mount="mount |column -t" + +#History alias +alias h="history" + +# Stop after sending count ECHO_REQUEST packets +alias ping="ping -c 5" + +#Displays the size of each item, and then sorts it by size, in a single column, with a notation to indicate the kind of file +alias lt='ls --human-readable --size -1 -S --classify' + +#copy progress bar +alias cpv='rsync -ah --info=progress2' \ No newline at end of file