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.
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