del (command)

In computing, del (or erase) is a command in DOS, OS/2, Microsoft Windows[1] and ReactOS command-line interpreters (shells) such as COMMAND.COM, cmd.exe, 4DOS, NDOS, 4OS2, 4NT and Windows PowerShell. It is used to delete one or more files or directories from a filesystem.

The command is analogous to the Unix rm command and to the OpenVOS delete_file and delete_dircommands.[2] RT-11, RSX-11, OS/8[3] and OpenVMS also provide the delete command which can be contracted to del. AmigaDOS provides a delete command as well.[4]

The del command is also available in the open source MS-DOS emulator DOSBox.

In Windows PowerShell, del and erase are predefined command aliases for the Remove-Item cmdlet which basically serves the same purpose.

While DR-DOS supports del and erase as well, it also supports the shorthand form era, which derived from CP/M. In addition to this, the DR-DOS command processor also supports delq/eraq. These are shorthand forms for the del/era/erase command with an assumed /Q parameter (for 'Query') given as well.

Syntax

del filename
erase filename

See also

References

  1. https://docs.microsoft.com/en-us/previous-versions/windows/it-pro/windows-server-2012-R2-and-2012/cc771049(v%3dws.11)
  2. http://stratadoc.stratus.com/vos/19.1.0/r098-19/wwhelp/wwhimpl/common/html/r098-19.pdf
  3. "Concise Command Language" (CCL)."OS/8 Handbook" (PDF). April 1974. Retrieved 28 November 2017.
  4. https://archive.org/details/1988-rugheimer-spanik-amigados-quick-reference
This article is issued from Wikipedia. The text is licensed under Creative Commons - Attribution - Sharealike. Additional terms may apply for the media files.