22 September 2007
13 September 2007
Extract single file from tar-archive without specifying the directory
http://princ3.wordpress.com/2007/06/11/extract-single-file-from-tar-archive-without-specifying-the-directory/
tar xvf some.tgz –no-anchored some.txt
When some.txt is in /some/dir/some.txt, some.txt gets extracted right there.
scp resume - rsync
http://joen.dk/wordpress/?p=34
scpresume=”rsync –partial –progress –rsh=ssh”
scpresume myFile remoteMachine:dirToPutIn/
Unfuck bash history
http://www.ukuug.org/events/linux2003/papers/bash_tips/
Specify this in .bashrc
Make Bash append rather than overwrite the history on disk:
shopt -s histappend
Whenever displaying the prompt, write the previous line to disk:
PROMPT_COMMAND=’history -a’
A new shell gets the history lines from all previous shells

