Click to See Complete Forum and Search --> : /dev/null


JavaCowboy
07-11-2003, 04:24 PM
I know this may be a stupid question, but what is /dev/null and what is it used for?

jrbishop79
07-11-2003, 04:30 PM
I believe it is called Null Device, and I've used it in script files to supress output at times....

here's the definition from a Linux text book that I have:

A "black hole"; any data sent to this device is gone forever, a single byte where all bits are set to zero. Use this device when you want to supress the output of a command appearing on the screen.

mdwatts
07-11-2003, 04:40 PM
It is also explained very well in this current thread (http://justlinux.com/forum/showthread.php?s=&threadid=106469&highlight=%2Fdev%2Fnull) which I found with a quick JL forum search for '/dev/null'.

Gotta love the JL search function. :)

serz
07-11-2003, 04:43 PM
http://www.justlinux.com/forum/showthread.php?s=&threadid=106469&highlight=what+is+%2Fdev%2Fnull

Edit: Ahhr.. again! Why do people keep posting 1 min before me!!! :mad:

Darkbolt
07-11-2003, 04:58 PM
serz, he posted 3 minutes before you, learn how to post :p

mdwatts
07-11-2003, 05:05 PM
Originally posted by serz

Edit: Ahhr.. again! Why do people keep posting 1 min before me!!! :mad:

A little slow are ya? ;)

You should have taken those typing classes in school when you had the chance. I'm certainly glad that I did. :)

serz
07-11-2003, 05:23 PM
Originally posted by mdwatts
A little slow are ya? ;)

You should have taken those typing classes in school when you had the chance. I'm certainly glad that I did. :)
Nah, I type pretty fast, and I didn't have to take classes for that :p

It's just that I open many tabs and then I post, so I don't really see if someone already posted where I was going to :D

o0zi
07-12-2003, 02:48 AM
I type fast and I haven't had any classes at all - touchtyping just seemed to occur once I'd been using computers for about 4 or 5 years.

mdwatts
07-12-2003, 04:04 AM
Originally posted by o0zi
I type fast and I haven't had any classes at all - touchtyping just seemed to occur once I'd been using computers for about 4 or 5 years.

Using all 10 fingers as I do?

o0zi
07-12-2003, 04:22 AM
Yep - now I need to learn to type with my feet :D

Darkbolt
07-12-2003, 04:58 AM
once i got addicted to the internet i just ended up typing faster...One of those things that the more you do it the faster and better you get at....Its really annoying when my keyboard is an inch off, because i wont notice that my typing is a key or two off until after i'm done with the setence lol :)