Colorized tail
tailcolor() {
tail -f -n5000 $1 | perl -pe "s/$2/\e[1;31;43m$&\e[0m/g"
}
Use this command:
diff -qr --exclude=.svn dir1 dir2|sort
-q = print result only where files are different
-r = recursive
—exclude = use it if something has to be excluded
tar.gz:
$ tar -zcvf archive_name.tar.gz directory_to_compress
tar.bz2:
$ tar -jcvf archive_name.tar.bz2 directory_to_compress
Add parameter —exclude-dir to the grep command:
grep -R --exclude-dir=example_dir "something" *
1. Create .pythonrc in your HOME directory
2. Add these lines to the previously created file:
import rlcompleter, readline
readline.parse_and_bind("tab: complete")
3. Export PYTHONSTARTUP variable in .bashrc file:
export PYTHONSTARTUP="$HOME/.pythonrc"