Blog is moving

My blog is moving to http://victormendonca.com/blog/. If you are looking for a specific or older post you are in the right place Otherwise check out my new page for more up to date content.

Thursday, November 27, 2008

My List of Aliases


I had a post a while ago that showed how to create aliases on bash to save time on repetitive commands. After a few months I find myself collecting more and more of these shortcuts, so I though I'd share it with you.

## Welcome note
cat $HOME/documents/ascii/welcome_victor

########################
### personal aliases ###
########################

# Basics
alias utar='tar -xvf'
alias utarz='tar -xzvf'
alias tarz='tar -czvf'
alias lss='ls -lh'
alias lssl='ls -lAh'
alias fproces='ps x | grep '
alias datef='date +%Y-%m-%d'
alias datev='date +%V'
alias sano='sudo nano'
alias renpic='e="1"; for i in `ls` ; do mv "$i" "$e.jpg" ; e=$(( e + 1 )) ; done'
alias rezpic50='for i in `ls` ; do convert "$i" -resize 50% "$i" ; done'
alias rezpic75='for i in `ls` ; do convert "$i" -resize 75% "$i" ; done'
alias rezpic20='for i in `ls` ; do convert "$i" -resize 20% "$i" ; done'
alias updatetime='sudo ntpdate ntp.ubuntu.com'
alias playm='mplayer -vo xv '
alias playmrt='mplayer -vo xv -vf rotate '
alias chcalendar='vim ~/.calendar/calendar'
alias lscreen='screen -ls'
alias duchm='du -ch | egrep '[0-9]*M' | sort -n'
alias duchg='du -ch | egrep '[0-9]*G' | sort -n'
alias dfh='df -hT'

# Software Management
alias aptl='sudo apt-get update && sudo apt-get install'
alias update='sudo apt-get update'
alias upgrade='sudo apt-get upgrade'
alias inst='sudo apt-get install'
alias apts='sudo apt-cache search'
alias updupg='sudo apt-get update && sudo apt-get upgrade'

## Networking ##
# WAN IP
alias my-ip='wget http://checkip.dyndns.org/ -O - -o /dev/null | cut -f7 -d"<" | cut -f2 -d">" '
# APs info
alias aps='sudo iwlist wlan0 scanning | egrep "ESSID|Channel|Frequency|Encryption|Quality"'

No comments: