It's UWAweek 26 (mid-year break)


This forum is provided to promote discussion amongst students enrolled in Open Source Tools and Scripting.

Please consider offering answers and suggestions to help other students! And if you fix a problem by following a suggestion here, it would be great if other interested students could see a short "Great, fixed it!"  followup message.

How do I ask a good question?
Displaying selected article
Showing 1 of 439 articles.
Currently 10 other people reading this forum.

 UWA week 13 (1st semester, week 5) ↓
SVG not supported

Login to reply

4:01pm Wed 27th Mar, Michael W.

"Suan Chuah" <20*0*5*2@s*u*e*t*u*a*e*u*a*> wrote:
> Hi Michael, may you please explain the difference between the usage of dev/null and dev/stderr that you covered in lectures? What is the purpose of using these?
Hi Suan, They are both places where standard output, e.g. from echo, can be redirected. /dev/stderr (don't forget the first '/' ) is standard error output (for error messages), while /dev/null is literally nowhere, a black hole, which simply gobbles up whatever data you send there, and that is used for outputs that you are not interested in seeing, but can't otherwise avoid. Cheers MichaelW

The University of Western Australia

Computer Science and Software Engineering

CRICOS Code: 00126G
Written by [email protected]
Powered by history
Feedback always welcome - it makes our software better!
Last modified  5:07AM Sep 06 2023
Privacy policy