Rmdir

Rmdir

rmdir (or rd) is a command which will remove an empty directory on a Unix, DOS, OS/2 or Microsoft Windows operating system. In Unix, it cannot be capitalized, whereas this doesn't apply for DOS, OS/2 and Windows. Normal usage is straightforward where one types:

rmdir name_of_directory

Where name_of_directory corresponds with the name of the directory one wishes to delete. There are options to this command such as -p in Unix which removes parent directories if they are also empty.

For example:

rmdir -p foo/bar/baz

Will first remove baz/, then bar/ and finally foo/ thus removing the entire directory tree specified in the command argument.

rmdir will not remove a directory if it is not empty in UNIX. The correct way to remove a directory and all its contents recursively is with the rm command. For example:

rm -r foo/bar/baz

The DOS equivalent of this command is deltree, or

rd /s directory_name

in Microsoft Windows.

ee also

*List of Unix programs
*List of DOS commands

References

* [http://www.linuxmanpages.com/man1/rmdir.1.php] The program's manpage

External links

* [http://technet.microsoft.com/en-us/library/cc754993.aspx Microsoft TechNet Rmdir article]


Wikimedia Foundation. 2010.

Игры ⚽ Поможем решить контрольную работу

Look at other dictionaries:

  • Rmdir — команда в операционных системах DOS, UNIX, Windows которая удаляет директорию. Так же эту команду понимает большинство FTP серверов. Unix чувствителен к регистру букв, поэтому в команде нельзя использовать прописные буквы. В DOS не имеет значения …   Википедия

  • rmdir — (remove directory) команда в операционных системах DOS, UNIX, Windows, которая удаляет каталог из файловой системы. Эту команду также понимает большинство FTP серверов. Unix чувствителен к регистру букв, поэтому в команде нельзя использовать… …   Википедия

  • Rmdir — (de l’anglais Remove Directory, suppression de répertoire) est une commande Unix permettant de supprimer des répertoires vides. Utilisation Dans un shell UNIX, la syntaxe générale est la suivante : rmdir répertoire Commandes Unix Aide… …   Wikipédia en Français

  • Rmdir — Saltar a navegación, búsqueda rmdir es una orden de Unix usado para borrar directorios del sistema de archivos. rmdir proviene de las palabras remove directory que significan borrar directorio en inglés. Ejemplo de uso: rmdir nombre del… …   Wikipedia Español

  • rmdir — (de l’anglais Remove Directory, suppression de répertoire) est une commande Unix permettant de supprimer des répertoires vides. Utilisation Dans un shell UNIX, la syntaxe générale est la suivante : rmdir répertoire v · …   Wikipédia en Français

  • Rmdir — es un comando de Unix usado para borrar directorios del sistema de archivos. rmdir proviene de las palabras remove directory que significan Borrar Directorio en Inglés. Ejemplo de uso: rmdir nombre del directorio …   Enciclopedia Universal

  • rmdir — • Remove Directory (Standard UNIX Kommando, http://www.desy.de/cgi bin/man cgirmdir) • RMDIR : Remove Directory (Standard MS DOS Kommando) …   Acronyms

  • rmdir — [1] Remove Directory (Standard UNIX Kommando, http://www.desy.de/cgi bin/man cgirmdir) [2] RMDIR : Remove Directory (Standard MS DOS Kommando) …   Acronyms von A bis Z

  • Rmdir (Unix) — rmdir rmdir (de l’anglais Remove Directory, suppression de répertoire) est une commande Unix permettant de supprimer des répertoires vides. Utilisation Dans un shell UNIX, la syntaxe générale est la suivante : rmdir répertoire Commandes Unix …   Wikipédia en Français

  • RMDIR — comp. abbr. Remove Directory …   United dictionary of abbreviations and acronyms

Share the article and excerpts

Direct link
Do a right-click on the link above
and select “Copy Link”