GO-V.ORG
As seen in

Rmdir

In computing, rmdir (or rd ) is a command which will remove an empty directory on various operating systems.[src]

In computing, rmdir (or rd ) is a command which will remove an empty directory on various operating systems.[src] ==Implementations== The command is available in Unix (e.g.[src] macOS, Solaris, AIX, HP-UX), Unix-like (e.g.[src] FreeBSD, Linux), DOS, Digital Research FlexOS, IBM OS/2, Microsoft Windows or ReactOS operating systems.[src] On MS-DOS, the command is available in versions 2 and later.[src] DR DOS 6.0 also includes an implementation of the command.[src] It is also available in the open source MS-DOS emulator DOSBox and in KolibriOS.[src] The numerical computing environments MATLAB and GNU Octave include an rmdir function with similar functionality.[src] ==Usage== ===Unix, Unix-like=== Normal usage is straightforward: $ rmdir name_of_directory where name_of_directory corresponds with the name of the directory one wishes to delete.[src] There are options to this command such as -p in Unix which removes parent directories if they are also empty.[src] 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.[src] rmdir will not remove a directory if it is not empty in UNIX.[src] The command will remove a directory and all its contents recursively.[src] For example: $ rm -r foo/bar/baz $ rm -rf foo/bar/baz ===DOS, OS/2, Windows, ReactOS=== rmdir command Normal usage is identical to Unix-like operating systems: >rmdir name_of_directory The equivalent command in MS-DOS and earlier (non-NT-based) versions of Microsoft Windows for deleting non-empty directories is .[src] In later version of Windows: >rd /s directory_name Windows based on the NT kernel (XP, Vista, 7, 8, Server 2003/2008) are case insensitive, just like their earlier predecessors, unless two files of the same name and different case exist.[src] Then case sensitivity applies when selecting which file to use, or if the case does not match either file, one may be chosen by Windows.[src] Having two files named the same with different case sensitivity is allowed either when Windows Services for Unix is installed or when the Windows Registry settings are set to allow it.[src] An example of the security risk is: Using rd/rmdir and two directories with the same name and different case sensitivities exist, one of which contains valid data and/or programs, and the other contains incriminating materials and/or malware.[src] If rd/rmdir gets executed without regard to case sensitivity and Windows chooses the legitimate folder to delete, the only folder left is the undesired one.[src] Windows then uses this folder instead of the previously legitimate one to execute programs, and one may be led to believe it contains legitimate data.[src] ==See also== List of Unix commands List of DOS commands ==References== ==Further reading== ==External links== rmdir | Microsoft Docs[src]

22 sentences · 22 cited inline · 0 references stored

References

No reference rows published for this article.

Cite this article

MLA

"Rmdir." encyclopegia.org, 2026, https://encyclopegia.org/wiki/rmdir. Accessed 05 December 2026.

Chicago

"Rmdir." encyclopegia.org. Accessed December 5, 2026. https://encyclopegia.org/wiki/rmdir.

APA

encyclopegia.org. (2026). Rmdir. Retrieved December 5, 2026, from https://encyclopegia.org/wiki/rmdir

Accessed December 5, 2026 · CC BY-SA 4.0 · citation page · JSON

CC BY-SA 4.0 · share-alike · https://en.wikipedia.org/w/index.php?oldid=1336329195 · 0.5 · snapshot enwiki-001336329195

Cite · JSON · Search

Related services and records

Services

  • Estate — measured countries, lanes and facts
  • Intel — live corroborated events
  • Legal — statutes, cases and citations
  • Encyclopedia — articles with inline sources
  • Space — launches, satellites and orbits
  • Search — federated search and reports
  • Pass — passport account and SSO
  • Corpora — read-only corpus origins
  • e01 — self-hosted corpora and tools
  • Careers — open roles: frontier engineers and sales partners
  • Index — every corpus, paper and record
  • Estate guide — what a public data estate is
  • Founder — Lois-Kleinner Alpasan
  • Records — DOIs and external deposits
  • Documents — one-pagers, PDFs and QR codes
  • Brand kit — logos and share images
  • Papers — plain-language briefs with citations
  • Browser — search engine, PWA and bookmarklet
  • Anticloud — the operator and its projects

As seen in Business Insider · 336 outlets · evidence DOIs · plain-language papers

Text and metadata only; each target carries its own sources. Missing data is published as no-data, never estimated.