Sunday, February 10, 2008

Some linux commands

1. copy files from directory A to B:

cp -r A/* B

2. remove file filename from directory dir:

rm dir/filename

3. remove an empty directory dir:

rmdir dir

4. remove a directory as well as all the files in it:

rm -r dir



Post a Comment

Subscribe to Post Comments [Atom]

<< Home