del (command)

In computing, del (or erase) is a command in 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 file system.

del / erase
The ReactOS del command
Developer(s)DEC, Microware, Microsoft, IBM, DR, Novell, JP Software, ReactOS Contributors
Operating systemRT-11, RSX-11, OS/8, OpenVMS, DOS, OS-9, MSX-DOS, FlexOS, SISNE plus, OS/2, Windows, ReactOS, KolibriOS, SymbOS, DexOS
TypeCommand

Implementations

The command is available for various operating systems including DOS, Microware OS-9,[1] IBM OS/2,[2] Microsoft Windows[3] and ReactOS.[4] It is analogous to the Unix rm command and to the Stratus OpenVOS delete_file and delete_dircommands.[5] DEC RT-11,[6] RSX-11, OS/8[7] and OpenVMS[8] also provide the delete command which can be contracted to del. AmigaDOS[9] and TSC FLEX[10] provide a delete command as well.

The erase command is supported by Tim Paterson's SCP 86-DOS.[11] On MS-DOS, the command is available in versions 1 and later.[12] It is also available in the open-source MS-DOS emulator DOSBox.

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.[13]

THEOS/OASIS[14] and FlexOS[15] provide only the erase command.

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

Syntax

del filename
erase filename
gollark: This is really only useful if you want to actually resolve krist domains for HTTPoidal purposes or something.
gollark: You could stick them in the A record in some simple format (maybe the metadata one).
gollark: And probably AAAA/TXT/etc support.
gollark: <@129553195314839552> You want this with better input validation basically.
gollark: ```javascriptconst dns = require("dns2")const fetch = require("node-fetch")const { Packet } = dns;const server = dns.createServer(async (request, send, rinfo) => { const response = Packet.createResponseFromRequest(request); const [ question ] = request.questions; const { name } = question; if (name.endsWith(".kst")) { const nameWithoutExt = name.replace(/\.kst$/, "") const kstName = await (await fetch(`https://krist.ceriat.net/names/${encodeURIComponent(nameWithoutExt)}`)).json() console.log(kstName) if (kstName.name.a) { response.answers.push({ name, type: Packet.TYPE.A, class: Packet.CLASS.IN, ttl: 300, address: kstName.name.a }); } send(response) } else { // work out how to send NOAUTH here send(response) }});server.on('request', (request, response, rinfo) => { console.log(request.header.id, request.questions[0]);});server.listen(5333);```

See also

References

Further reading

  • Wolverton, Van (1990). MS-DOS Commands: Microsoft Quick Reference, 4th Revised edition. Microsoft Press. ISBN 978-1556152894.
  • Kathy Ivens; Brian Proffit (1993). OS/2 Inside & Out. Osborne McGraw-Hill. ISBN 978-0078818714.
  • Frisch, Æleen (2001). Windows 2000 Commands Pocket Reference. O'Reilly. ISBN 978-0-596-00148-3.
This article is issued from Wikipedia. The text is licensed under Creative Commons - Attribution - Sharealike. Additional terms may apply for the media files.