On Fri, May 17, 2002 at 08:45:52PM -0400, Michael O'Donnell wrote:

[snip]

> Just for fun, we can create our very own device node that
> activates the same kernel code and is in every possible
> way the equivalent of /dev/null.  This is an admittedly
> trivial (though thoroughly exhilarating!) exercise but
> before you laugh please recall that any number of startups
> during the dotcom era had business plans that were less
> obviously worthwhile.
> 
> We'll call our device node "useless" and we'll create
> it in the /tmp directory to connote its lasting value.
> The utility program "mknod" can create the node for us:
> 
>    mknod /tmp/useless c 1 3
> 
> ...and the result is a new device node under the /tmp
> directory node with the same attributes as /dev/null:

  For more fun, someday, I'm going to have to do the following on
I system I can afford to trash:

# rm /dev/zero /dev/null;mknod /dev/null c 1 5;mknod /dev/zero c 1 3

just to see what happens.  Even better, if it has a minimal, non-disasterous
effect, would be to do it to a work associate's system and watch him struggle
to figure out what's wrong with only certain commands.  :-)

  Unix/Linux is just too much fun...


-- 
-Paul Iadonisi
 Senior System Administrator
 Red Hat Certified Engineer / Local Linux Lobbyist
 Ever see a penguin fly?  --  Try Linux.
 GPL all the way: Sell services, don't lease secrets

*****************************************************************
To unsubscribe from this list, send mail to [EMAIL PROTECTED]
with the text 'unsubscribe gnhlug' in the message body.
*****************************************************************

Reply via email to