Linux - GeneralThis Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Hey all. I have some random weird questions about /dev/null...
1. What happens if I were to move a file I don't want anymore to /dev/null as the root user? Does it get deleted, or just kind of float around somewhere other than it's original location?
2. Does /dev/null ever get full?
Hey all. I have some random weird questions about /dev/null...
1. What happens if I were to move a file I don't want anymore to /dev/null as the root user? Does it get deleted, or just kind of float around somewhere other than it's original location?
2. Does /dev/null ever get full?
Definition: /dev/null: On UNIX, this is a virtual-file that can be written to. Data written to this file gets discarded. It is similar to the file call NUL on Windows machines. Key point: When rooting a machine, intruders will often redirect logging to /dev/null For example, the command ln -s /dev/null .bash_history will cause the system to stop logging bash commands. Culture: In the vernacular, means much the same thing as black hole. Typical usage: if you don't like what I have to say, please direct your comments to /dev/null.
Moving a file to /dev/null can replace /dev/null by the file!
Correct. The null device is not a directory, so "mv uselessfile /dev/null" will overwrite /dev/null with uselessfile. The null device is mostly used to discard output you don't want. The command below will redirect errors on the console to /dev/null
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.