Sunday, April 21, 2013

debian no sound

lsof /dev/snd/*

to find out what program are using sound device, some program might be hanging causing sound not to function

Wednesday, April 10, 2013

linux grep and sed to find through files and replace a string

grep -rl oldstring path | xargs sed -i 's/oldstring/newstring/g

find /path -type f -exec sed -i 's/oldstring/newstring/g' {} \;

Friday, April 5, 2013