- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - Linux
- >
- Re: what is the /dev/zero at all?
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Discussions
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-07-2003 10:15 PM
04-07-2003 10:15 PM
Best Regards,
Frederick
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-07-2003 10:33 PM
04-07-2003 10:33 PM
Solutionit is the same as /dev/null.
++++++++++++++++++++++++++++++
DESCRIPTION
Data written on a null or zero special file is discarded.
Reads from the null special file always return end of file, whereas
reads from zero always return \0 characters.
null and zero are typically created by:
mknod -m 666 /dev/null c 1 3
mknod -m 666 /dev/zero c 1 5
chown root:mem /dev/null /dev/zero
NOTES
If these devices are not writable and readable for all users, many pro-
grams will act strange.
++++++++++++++++++++++++++++++
-balaji (and i love answering ur questions. for i get easy bunnies)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-07-2003 10:37 PM
04-07-2003 10:37 PM
Re: what is the /dev/zero at all?
-balaji
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-08-2003 05:21 AM
04-08-2003 05:21 AM
Re: what is the /dev/zero at all?
dd if=/dev/zero if=/dev/dsk/cXtYdZ bs=32
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-08-2003 06:06 AM
04-08-2003 06:06 AM
Re: what is the /dev/zero at all?
Regards,
Sergejs
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-08-2003 05:22 PM
04-08-2003 05:22 PM
Re: what is the /dev/zero at all?
Some classic examples of what they are used for:
/dev/null
some.application 2>/dev/null
To redirect errors to the bit-bucket, so you don't see them on the screen.
/dev/zero
dd if=/dev/zero of=some.file bs=1024b count=1024
Create a completely empty 1MB file. Creating test files to do work on is not all that unusual. Some times people use this to check if their file-system can create large-files (greater than 2GB).
It can also be used to clean a disk (whether it be a floppy or a hard-disk) as mentioned in an earlier post.
anyway.. hope this clears things up a bit.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-09-2003 03:17 AM
04-09-2003 03:17 AM
Re: what is the /dev/zero at all?
In my opinion /dev/zero is different than /dev/nul.
/dev/zero can produce an (virtual) endless stream of zero's, where /dev/nul is just a bitbucket.
Greetzz
Donald
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-09-2003 03:01 PM
04-09-2003 03:01 PM