-3

Seeing that /dev/null's utility isn't immediately obvious to me, what is the use of /dev/null piping?

2

make >/dev/null
this will send the normal output to nowhere land, and retain all the errors right in front of you on the screen. Anything basically you don't need to see/have fill your screen you send to /dev/null

2

/dev/null is used where input, output, or both are not necessary. A read will result in zero bytes being returned. A write will accept any amount of data, and simply discard it.

This is most useful for cron jobs where you don't care about the output (or input, as the commands will not be running on an interactive terminal) Or where you want only the exit status of a command without any output.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.