On linux machines, there are a couple aliases I like to make just so everything runs a little smother and a little prettier.

To use these aliases, simply edit (via GUI or vi/nano/vim/etc.) “.profile” or “.bashrc”, save the changes and then use the command:

. .profile

 

My bash profile:

alias ls="ls --color=auto"
alias ll="ls -al --color=auto"
alias l.="ls -d .* --color=auto"

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

# Stop after sending count ECHO_REQUEST packets #
alias ping='ping -c 5'
# Do not wait interval 1 second, go fast #
alias fastping='ping -c 100 -s.2'

# update on one command
alias update='sudo apt-get update && sudo apt-get upgrade'

# reboot / halt / poweroff
alias reboot='sudo /sbin/reboot'
alias poweroff='sudo /sbin/poweroff'
alias halt='sudo /sbin/halt'
alias shutdown='sudo /sbin/shutdown'

Leave a Reply