In some operating systems, the null device is a device file that ignores anything written to it but returns that the write worked. This device is called
/dev/null on Unix and Unix-like systems,
NUL on CP/M and DOS (internally
nul on newer Windows systems (internally
\Device\Null on Windows NT),
NIL: on Amiga systems, and
NL: on OpenVMS. In Windows Powershell, the equivalent is
$null. It returns nothing to any process that reads from it, returning EOF immediately. In IBM DOS/360, OS/360 (MFT, MVT), OS/390 and z/OS operating systems, such files would be assigned in JCL to
References[change | change source]
- "Redirecting Error Messages from Command Prompt: STDERR/STDOUT". support.microsoft.com. Retrieved 2020-03-06.
- Commodore-Amiga, Inc. (1986). The AmigaDOS Manual. Bantam Books. p. 12. ISBN 0-553-34294-0.
- "OpenVMS Programming Concepts Manual". h30266.www3.hpe.com. Archived from the original on 2020-07-02. Retrieved 2020-03-06.
- SteveL-MSFT. "about_Automatic_Variables - PowerShell". docs.microsoft.com. Retrieved 2020-03-06.
- "Single Unix Specification Section 10.1: Directory Structure and Files". The Open Group. Retrieved 2012-11-29.