rmdir vs. rm
rmdir:
This utility can be used to delete an existing directory. To use it, simply
enter rmdir directory_name—for example, rmdir MyFiles. Be aware, however, that rmdir requires that the directory be empty before it will delete it. On many distributions, an alias named rd is defined by one of your shell configuration files thatrunsthe rmdir command.
rm
The rm utility is a more powerful deletion utility that can be used to delete a populated directory. To delete a directory, enter rm–r directory_name.
No comments:
Post a Comment