User Tools

Site Tools


bash:aliases:examples

BASH - Aliases - Examples

apt Aliases

alias apt='sudo apt-get'
alias update='sudo apt-get update && sudo apt-get upgrade && sudo apt-get autoremove && sudo apt-get autoclean'

cd Aliases

# 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 ../../../../..'

grep Aliases

# 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'

ls Aliases

# Colorize the ls output.
alias ls='ls --color=auto'
 
# Use a long listing format.
alias ll='ls -la'
 
# Show hidden files.
alias l.='ls -d .* --color=auto'

math Aliases

alias bc='bc -l'

bash/aliases/examples.txt · Last modified: 2020/07/15 09:30 by 127.0.0.1

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki