Tugger the SLUGger!SLUG Mailing List Archives

Re: [SLUG] Quick Unixy Q.


This one time, at band camp, Jeff Waugh said:

>'tag,

'morgen

>Here's a quick one... What is /dev/zero used for, and what are a few good
>examples?

Making loopback devices for boot floppy images, etc

$ dd if=/dev/zero of=foofile bs=1k count=1440
$ mkfs -t ext2 foofile
$ mount -o loop foofile /mnt

Just a thought, shouldn't file:///dev/* be out of bounds (for any
browser)?  I mean, why would you want to read your device files?
Reminds me of file:///c:/con/con in older versions of IE.

-- 
     "This is not an attack! It is a pre-emptive retaliation."
(o_ '
//\  
v_/_