Skip to content

Instantly share code, notes, and snippets.

@Saren-Arterius
Created January 5, 2017 03:35
Show Gist options
  • Save Saren-Arterius/f907430ea4ff2975914f66d007ae8f86 to your computer and use it in GitHub Desktop.
Save Saren-Arterius/f907430ea4ff2975914f66d007ae8f86 to your computer and use it in GitHub Desktop.
alias sta='sudo systemctl start'
alias sto='sudo systemctl stop'
alias stt='sudo systemctl status'
alias rst='sudo systemctl restart'
alias enb='sudo systemctl enable'
alias dsb='sudo systemctl disable'
alias s='sudo apt install'
alias i='sudo apt install'
alias r='sudo apt remove'
alias sudo='sudo '
alias ls='ls -l -h --group-directories-first --time-style=+"%d.%m.%Y %H:%M" --color=auto -F'
## Colorize the grep command output for ease of use (good for log files)##
alias grep='grep --color=auto'
alias egrep='egrep --color=auto'
alias fgrep='fgrep --color=auto'
## Create parent directories on demand
alias mkdir='mkdir -pv'
alias now='date +"%T"'
alias sna='sudo nano'
alias iotop='sudo iotop'
alias iftop='sudo iftop'
# do not delete / or prompt if deleting more than 3 files at a time #
alias rm='rm -I --preserve-root'
# confirmation #
alias mv='mv -i'
alias cp='cp -i'
alias ln='ln -i'
# Parenting changing perms on / #
alias chown='chown --preserve-root'
alias chmod='chmod --preserve-root'
alias chgrp='chgrp --preserve-root'
# become root #
alias root='sudo -i'
alias su='sudo su - -s /bin/zsh'
## this one saved by butt so many times ##
alias wget='wget -c'
alias iown='sudo chown -R $(whoami)'
alias drld='sudo systemctl daemon-reload'
alias htop='htop -d 5'
alias yolo='sudo apt update && sudo apt upgrade'
alias download='aria2c -s 16 -j 16 -x 16 -k 1M '
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment