Friday 20 December 2013

Remove directories - Unix

The command to delete or remove directories is rmdir

Note that rmdir can delete only empty directories. You CANNOT delete non-empty directories using rmdir.

In order to remove non-empty directories use the rm -rf command instead. Use the -r switch with caution since it deletes the inner contents of a directory recursively.

No comments:

Post a Comment

Related Posts Plugin for WordPress, Blogger...
eXTReMe Tracker