How To

links

ln -s existingDir newDir

alternatives

Choose default from different installed JREs

sudo update-alternatives --config java

Find path a program is installed in

where program

Shell variables

Variable Meaning
!$ last argument of last command
!! last command, e.g. sudo !!
$? exit code of last run program

lame scripting tricks

ZSHs .history under Dropbox

History is saved in a folder, which is sync'ed via Dropbox-Service, local .history is a symlink to that file:

cp .history .history.bak; mv .history Dropbox/ && ln -s Dropbox/.history .history

short form for if constructs

[[ condition ]] && doSmthIfConditionIsTrue;
howto.txt · Last modified: 2011/04/13 13:16 by semok
CC Attribution-Noncommercial-Share Alike 3.0 Unported chimeric.de = chi`s home Creative Commons License Valid CSS Driven by DokuWiki do yourself a favour and use a real browser - get firefox!! Recent changes RSS feed Valid XHTML 1.0