Linux / Unix rmdir command

About rmdirDeletes a directory.

Syntax

rmdir [OPTION]… DIRECTORY…

–ignore-fail-on-non-empty ignore each failure that is solely because a directory is non-empty.
-p, –parents Remove DIRECTORY and its ancestors. E.g., `rmdir -p a/b/c’ is similar to `rmdir a/b/c a/b a’.
-v, –verbose output a diagnostic for every directory processed.
–version output version information and exit.

Examples

rmdir mydir – removes the directory mydir

rm -r directory – would remove a directory, even if files existed in that directory.









source: http://www.computerhope.com/unix/urmdir.htm 

This entry was posted in linux, server and tagged . Bookmark the permalink.

2 Responses to Linux / Unix rmdir command

  1. dreamluverz says:

    this helps alot. accdg to some forums you can also add this option -f for so it won’t prompt anymore.
    ex: rm -r -f diretory

  2. maderverz says:

    nice website can we meet po and teach mo po me?

Leave a Reply

Your email address will not be published. Required fields are marked *

*

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>