aliases bashrc

25/05/2014

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.

HowToGeek

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/bitmessagemain.py’
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 http://www.theguardian.com/uk’
alias geek=’firefox https://170.64.151.73/geek’
alias reddit=’firefox https://www.reddit.com’
alias sp=’firefox https://startpage.com/do/mypage.pl?prf=f69a72cddcda56a19a9b208b942af175′

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

#apt
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.