Good to know

echo 'test' 1>&2
php -l check for error in php file -a for interactive mode
indent -bc -br -fca
sshfs [email protected]:directory/file tmp
find . -name .svn -print0 | xargs -0 rm -rf
find . -type f ! -mtime 60 --exec rm {} -f \; (60 days)
sed 'LINE_NUMBERd' file //delete a line in the file
tar -cvzf mystuff.tar.gz myfiles
tar -xvf filename.tar
ssh-keygen -t dsa
setfacl -Rm u:bernard:rw RepertoireDeTest/

Convert gifs in videos: $ for f in *.gif; do ffmpeg -f gif -i $f -vcodec mpeg4 -y mp4/$f.mp4; done


mysqldump --user=save --password=save --all-databases | bzip2 > /root/save/databases_$(date +%Y%m%d%H%M).sql.bz2

Save a website with 3 levels of deepth

wget -r -linf -k -p -E http://site.web


Create a new named session: screen -S NOM
Restore a named session: screen -x NOM


C^a c = create
C^a A = title
C^a C^a = toggle
C^a num = switch to num
C^a F = fit
C^a space/back space = next/prev windows
C^a S/Q/tab = windows Split, Remove other, Change focus
C^a C = clear
C^a   = Ctrl
C^a F = fit
C^a " = List tabs


termcapinfo xterm* ti@:te@ # Pour le scroll
caption always # activates window caption
caption string '%{= wk}[ %{k}%H %{k}][%= %{= wk}%?%-Lw%?%{r}(%{r}%n*%f%t%?(%u)%?%{r})%{k}%?%+Lw%?%?%= %{k}][%{b} %d/%m %{k}%c %{k}]' # good looking window bar
bindkey -k k5 prev # F5 for previous window
bindkey -k k6 next # F6 for next window