Bash tricks

In all php files look for string "We are currently" and print filename and line number for every match:
find . -iname "*php" -exec grep -Hn "We are currently" "{}" \;
Inkscape can convert files from bash!
inkscape -z -D --file=input.svg --export-pdf=output.pdf
Very useful to know:

Nice aliases

export LANG=cs_CZ.utf8

# user@hostname path $: 
PS1='\[\e[00;32m\]\u@\h\[\e[m\] \[\e[1;34m\]\w \$ \[\e[m\]\[\e[00m\]'

# root@hostname path $: 
PS1='\[\e[1;31m\]\u@\h\[\e[m\] \[\e[1;34m\]\w\[\e[m\] \[\e[1;31m\]\$ \[\e[m\]\[\e[0;00m\]'

alias ..='cd ..'
alias a='. ~/.bashrc'
alias cp='cp -i'
alias l='ls -a --color'
alias ll='ls -alh --color'
alias mv='mv -i'
alias na='nano ~/.bashrc'
alias net='nano /var/www/net/index.php'
alias rm='rm -i'
alias sdr='screen -dr'
alias sr='screen -r'
alias wgr='chmod -R g+r /var/www; chgrp -R www-data /var/www'
alias www='cd /var/www'