On Mon, Nov 26, 2001 at 11:52:15AM -0500, Chandrakumar Muthaiah wrote: > >But NEVER make the mistake of doing a cat /dev/zero > fname! > >This will fill your whole hard disk with a file which would > >be difficult to delete !!! > Do this > > dd if=/dev/zero of=filename bs=1 count=1 > > if you really want to create this way. > ---end quoted text---
Yep, this will definitely work. Since count=1, it will make a 1 byte file, initialised zero. If you want a zero byte file: dd if=/dev/zero of=filename bs=1 count=0. It will have 0 records in/ out, but the file would be opened and closed. Bish -- : ####[ Linux One Stanza Tip (LOST) ]########################### Sub : Untar a bunch of tarballs (with wildcard) LOST #211 Unlike gzip, tar does not accept wildcards.'tar -xzf *.tar.gz' will not work. However, this will untar a bunch of tarballs in a particular directory with a prompt for very tarball met before untarring: 'ls *.tar.gz | xargs -p -l tar -xzvf'. ####<[EMAIL PROTECTED]>#################################### : _______________________________________________ linux-india-help mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/linux-india-help
