- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: What is this?
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
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
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
тАО05-21-2002 02:37 PM
тАО05-21-2002 02:37 PM
On HP-UX 11i, I have a file called /dev/zero? What is this and do I need it?
TIA, Ryan
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-21-2002 02:39 PM
тАО05-21-2002 02:39 PM
Solutiondd if=/dev/zero bs=8k count=10000 of=/dev/rdsk/c1t1d0
Note: You only read from this device node; never write to it.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-21-2002 02:46 PM
тАО05-21-2002 02:46 PM
Re: What is this?
Wow, that was fast. I'm still confused, I thought I could use /dev/null to both read and write. Is that not correct?
Ryan
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-21-2002 02:49 PM
тАО05-21-2002 02:49 PM
Re: What is this?
/dev/null will not send anything
/dev/zero will send 0x00 ( as said James).
You cannot fill a disk using /dev/null.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-21-2002 02:51 PM
тАО05-21-2002 02:51 PM
Re: What is this?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-21-2002 02:51 PM
тАО05-21-2002 02:51 PM
Re: What is this?
Well, you can read and write from/to /dev/null but try this test to see the difference:
1) dd if=/dev/null of=/tmp/test1 bs=1k count=2
(You would expect that to write 2 1k blocks
for a 2048 byte file)
2) dd if=/dev/zero of=/tmp/test2 bs=1k count=2
(You would expect the same thing; test2 should be 2048 bytes long.)
ls -l /tmp/test*
I think you will immediately see the difference. /dev/null supplies zero bytes while /dev/zero supplies an infinite number of NUL's.
That should clear it up, Clay