Perangkat null
Pada beberapa sistem operasi, perangkat null adalah berkas perangkat khusus yang mementahkan semua data yang masuk ke dalamnya tetapi mengindikasikan bahwa operasi penulisan telah sukses dilaksanakan. Perangkat ini dinamai /dev/null pada Unix dan sistem yang mirip dengannya, NUL: atau NUL pada DOS dan CP/M, nul pada sistem operasi Windows yang terbaru ( \Device\Null pada Windows NT), NIL: pada Amiga, dan NL: pada OpenVMS. Pada PowerShell, bandingannya adalah $null.
Perangkat tersebut akan memberikan EOF ketika sebuah proses membaca isi perangkat tersebut.[1] Perangkat null biasa digunakan untuk memusnahkan keluaran yang tidak diinginkan dari sebuah proses yang sedang berjalan.
Dalam jargon pemrogram, terutama jargon Unix, perangkat tersebut dijuluki ember bit atau lubang hitam.
Sejarah
Merujuk pada halaman man Berkeley Unix, Versi 7 Unix memasukkan fitur perangkat null.[2] AT&T merilis Versi 7 Unix pada 1979.[3]
Catatan kaki
- ^ "Single Unix Specification Section 10.1: Directory Structure and Files". The Open Group. Diakses tanggal 2012-11-29.
- ^ "null(4)". The FreeBSD Project. Diakses tanggal 2018-08-18.
- ^ Fiedler, David (October 1983). "The Unix Tutorial / Part 3: Unix in the Microcomputer Marketplace". Byte (magazine). v. 8 (#10 - UNIX): 132–156. ISSN 0360-5280. OCLC 854802500. Diakses tanggal 2018-09-11.
Content Disclaimer
Informasi ini disarikan dari Wikipedia dan disajikan kembali untuk tujuan edukasi. Konten tersedia di bawah lisensi CC BY-SA 3.0. Kami tidak bertanggung jawab atas ketidakakuratan data yang bersumber dari kontribusi publik tersebut.
- The information displayed on this website is sourced in part or in whole from Wikipedia and has been adapted for the purpose of restating it. We strive to provide accurate and relevant information, however:
- There is no guarantee of absolute accuracy. Wikipedia is an open, collaborative project that can be edited by anyone, so information is subject to change.
- It is not intended to constitute professional advice. The content displayed is for informational and educational purposes only. For important decisions (e.g., medical, legal, or financial), please consult a professional.
- Content copyright. Wikipedia is licensed under the Creative Commons Attribution-ShareAlike License (CC BY-SA). This means that content may be reused with appropriate attribution and shared under a similar license.
- Responsible use. Any risk arising from the use of information from this website is entirely the responsibility of the user.