Thursday, 9 August 2012

Deleting or backing up a directory in linux

You'd think I'd be able to remember this:

    rm -rf directory


or this
mkdir ../bin2
cp -r * ../bin2
ls ../bin2

its not really rocket science

This will pick up all the files in a directory (but skip the svn files):

tar -cvz $d/* > dust.tar.gz

No comments:

Post a Comment