What's the difference between mkdir and mkdir -p ? -> mkdir -p doesn't fail if the directory already exists.
(likewise for rm vs. rm -f) Think about it when you write makefile fragments, it can avoid stuff failing in stupid ways. It's also more efficient than alternatives. Compare: test -d dir || mkdir dir mkdir -p dir