|
Tags: Blanking Manual revert |
(3 intermediate revisions by 2 users not shown) |
Line 1: |
Line 1: |
| [[/dev/null]] is a Linux null device file. It (in [[Chaz Wiki:Manual of Style|simplification]],) is a kind of hack to throw files to go down a server
| |
| <sup>[https://www.digitalocean.com/community/tutorials/dev-null-in-linux <nowiki>[1]</nowiki>]</sup>.
| |
| Let’s take a look at understanding what it means, and what we can do with this file.
| |
| =Properties=
| |
| This will return an End of File (EOF) character if you try to read it using the cat command.
| |
|
| |
|
| <code>cat /dev/null</code>
| |
|
| |
| This is a ''valid'' file:
| |
|
| |
| <code>stat /dev/null</code>
| |
|
| |
| This gives me an output of...
| |
|
| |
| <code>
| |
| File:/dev/null
| |
| Size:0 Blocks:0 IO Block:4096 character special file
| |
| Device:6h/6d Inode:5 Links:1 Device type:1,3
| |
| Access:(0666/crw-rw-rw-) Uid:( 0/ root) Gid:( 0/ root)
| |
| Access:2020-02-04 13:00:43.112464814 +0530
| |
| Modify:2020-02-04 13:00:43.112464814 +0530
| |
| Change:2020-02-04 13:00:43.112464814 +0530
| |
| </code>
| |