Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 03 Feb 2001 12:36:51 -0800 (PST)
From:      John Baldwin <jhb@FreeBSD.org>
To:        Poul-Henning Kamp <phk@critter.freebsd.dk>, chat@FreeBSD.org
Subject:   Re: DEVFS newbie...
Message-ID:  <XFMail.010203123651.jhb@FreeBSD.org>
In-Reply-To: <15139.981232112@critter>

next in thread | previous in thread | raw e-mail | index | archive | help

On 03-Feb-01 Poul-Henning Kamp wrote:
> It's really very simple, if I get my way, this will be possible:
> 
>       # rm /dev/null
>       # echo 'OOPS!'
          ^^^^^^^^^^^^
And this is the most important command in this whole sequence.. :)

>       # rm -W /dev/null
>       # ls -l /dev/null
>       crw-rw-rw-  1 root  wheel    2,   2  3 Feb 21:25 /dev/null
>       # mount -t devfs devfs /home/jail/dev
>       # cd /home/jail/dev
>       # rm -f *
>       # rm -W null zero tty console
>       # ls -l
>       crw-------  1 phk   wheel    0,   0  2 Feb 01:09 console
>       drwxr-xr-x  2 root  wheel         0  2 Feb 01:06 fd
>       crw-rw-rw-  1 root  wheel    2,   2  3 Feb 21:25 null
>       crw-rw-rw-  1 root  wheel    1,   0  3 Feb 17:27 tty
>       crw-rw-rw-  1 root  wheel    2,  12  1 Jan  1970 zero
>       #

-- 

John Baldwin <jhb@FreeBSD.org> -- http://www.FreeBSD.org/~jhb/
PGP Key: http://www.Baldwin.cx/~john/pgpkey.asc
"Power Users Use the Power to Serve!"  -  http://www.FreeBSD.org/


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-chat" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?XFMail.010203123651.jhb>