/ Technical / Linux

Linux

A few notes on linux tasks I do so seldom I have to google everytime - but no more!

Guides

Simple Debian Etch installation

Kernel compilation

Useful Snippets

Looping and reading a line at a time

while read line; do
  echo $line
done < test.txt

Remove annoying .DS_Store files even if directories have spaces in them

Remove group of files
find . -name .DS_Store -exec rm {} \;

Find differences between two directories (with subdirectories), stating if files differ

diff -rq $DIR1 $DIR2

Count files in current and all subdirectories

find . -type f | wc -l