aliases bashrc


I’ve been playing about with aliases within Ubuntu

Aliases are a way for you to customize the commands by giving them aliases (nicknames). You can use them to remember hard commands or make short names to long commands you just hate to type. To setup aliases, right-click and create an empty file in your home directory and name it “.bash_aliases”. Notice the period at the beginning of the name that will make the file hidden. Press “Ctrl+H” to show the hidden files.


This is a sample from my .bashrc file

# Personal alias
alias d=’cd ~/Desktop’
alias c=’clear’
alias a=’alias’
alias s=’source ~/.bashrc’
alias today=”date ‘+%d/%m/%y'”
alias trace=’sudo traceroute’
alias bm=’~/PyBitmessage/src/’
alias gea=’sudo geany’
alias ..=’cd ..’
alias …=’cd ../..’
alias ….=’cd ../../..’
alias …..=’cd ../../../..’
alias hist=’history’
alias dir=’sudo nautilus `pwd`’
alias syn=’sudo synaptic’
alias vb=’virtualbox’
alias bash=’sudo geany .bashrc’

# websites
alias guard=’firefox’
alias geek=’firefox’
alias reddit=’firefox’
alias sp=’firefox′

alias del=’mv –target-directory=~/.Trash/’

alias install=’sudo apt-get install’
alias remove=’sudo apt-get remove’
alias purge=’sudo apt-get remove –purge’
alias update=’sudo apt-get update && sudo apt-get upgrade’
alias upgrade=’sudo apt-get upgrade’
alias clean=’sudo apt-get autoclean && sudo apt-get autoremove’
alias search=’apt-cache search’
alias show=’apt-cache show’
alias sources='(gksudo gedit /etc/apt/sources.list &)’

Comments are closed.