Saved & Used .bash_aliases

~/.bash_aliases

Editiere:

nano ~/.bash_aliases
# default echoalias xxx='echo "WELCOME! ~ You are acting as $USER."'# THIS aliasesalias xxx.bash='nano ~/.bash_aliases'# basicsalias ls='ls $LS_OPTIONS'alias ll='ls $LS_OPTIONS -lh'alias l='ls $LS_OPTIONS -lA'alias rm='rm -i'alias cp='cp -i'alias mv='mv -i'# up2datealias xxx.update='apt update && apt upgrade'alias xxx.uplist='apt list --upgradable'alias xxx.upgrade='apt dist-upgrade && apt full-upgrade'alias xxx.upclean='apt autoremove && apt autoclean && apt clean && apt purge'alias xxx.upflat='flatpak update'alias xxx.upsnap='snap refresh'# networkalias xxx.mtr='mtr 1.1.1.1'# securityalias xxx.lynis='lynis audit system'# wwwalias chown.www='chown -r www-data:www-data /var/www'alias chown.xxx='chown -r xxx:www-data /var/www'alias chmod.www='chmod -r 755 /var/www'alias apache.restart='systemctl apache2 restart'alias maria.restart='systemctl mariadb restart'## a quick way to get out of current directoryalias ..='cd ..'alias ...='cd ../../../'alias ....='cd ../../../../'alias .....='cd ../../../../'alias .1='cd ../'alias .2='cd ../../'alias .3='cd ../../../'alias .4='cd ../../../../'alias .5='cd ../../../../../'alias .6='cd ../../../../../../'### Datealias xxx.path='echo -e ${PATH//:/\\n}'alias xxx.now='date +"%T"'#alias xxx.nowtime='now'alias xxx.nowdate='date +"%d-%m-%Y"'### weatheralias xxx.weather='curl "https://wttr.in/Berlin"'### exitalias xxx.X='exit'### eDEXalias xxx.tron='cd ~/.config/eDEX-UI'### ShowMealias xxx.showreboot='last reboot -F'alias xxx.xxx=''### See used Memoryalias xxx.memory='free -m'### Clear PageCache### Do it maybe ONLY ONCE a day e.g. before reboot### Moreover it will also slow the system for a few seconds while the cache is cleaned### and every resource required by OS is loaded again in the disk-cache.alias xxx.clearcache='sync; echo 1 > /proc/sys/vm/drop_caches'### Clear Swapalias xxx.clearswap='swapoff -a && swapon -a'### ReFresh Kernelalias xxx.upinit='update-initramfs -u'

STRG+O & STRG+X


update ~/.bash_aliases
source ~/.bash_aliases. ~/.bashrc

Tagged


WEBMANAGEMENT.online
Layout, Konfiguration, Mentoring & Support.

© WEBMANAGEMENT.online