- cross-posted to:
- linux@lemmy.ml
- cross-posted to:
- linux@lemmy.ml
cross-posted from: https://lemm.ee/post/41570987
You must log in or register to comment.
- Vilian ( @Vilian@lemmy.ca ) English1•2 months ago
lot of distros are symlinking /bin /sbin /usr
- Squibbles ( @Squibbles@lemmy.ca ) English1•2 months ago
Cool though still a bit confusing, like what’s a “Device file”? Also so many of those are so similar in use like /usr and /sbin. Why would one be used over another?
- SapientLasagna ( @SapientLasagna@lemmy.ca ) English2•2 months ago
/sbin is like /bin, but for system administrative type commands. /usr holds all the other software that isn’t critical to get the system up and running.
A device file is a special file that’s like a pointer to a piece of actual hardware, like a serial port or a hard drive. /dev also has some non-hardware special files like /dev/zero. When you read from that one, you get an endless stream of zeros. Or /dev/null, that discards any data that’s written to it.