Skip to contentSkip to conversation

/dev/zero

DISCUSSION blesson paul 5 participants 5 messages Apr 12, 2002

lore
Share & tools
lore
#0 lore raw

Hi all
I am newbie to linux kernel. What is the use of /dev/zero.
Why it is created and how to use it
regards
Blesson Paul

_________________________________________________________________
Chat with friends online, try MSN Messenger: http://messenger.msn.com

#1 lore raw
Quoted 8 lines · blesson paul

Hi all
I am newbie to linux kernel. What is the use of /dev/zero.
Why it is created and how to use it
regards
Blesson Paul

Quoted 9 lines

_________________________________________________________________
Chat with friends online, try MSN Messenger: http://messenger.msn.com

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/

Hi,

/dev/zero is a data source. It delivers zeroes ( maybe that's why this name ;-).

BTW: You are new to the linux kernel or new to linux / unix?

Regards
Frank

#2 lore raw

Just as a matter of interest myself...what is it's actual function? It is used during kernel debugging to supply an input?

-----Original Message-----
From: [email protected] [mailto:[email protected]] On Behalf Of Frank Schaefer
Sent: 12 April 2002 08:19
To: [email protected]
Subject: Re: /dev/zero

Quoted 2 lines · blesson paul

Hi all
I am newbie to linux kernel. What is the use of

/dev/zero.

Quoted 11 lines

Why it is created and how to use it
regards
Blesson Paul

_________________________________________________________________
Chat with friends online, try MSN Messenger: http://messenger.msn.com

-
To unsubscribe from this list: send the line "unsubscribe

linux-kernel" in

Quoted 4 lines

the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/

Hi,

/dev/zero is a data source. It delivers zeroes ( maybe that's why this name ;-).

BTW: You are new to the linux kernel or new to linux / unix?

Regards
Frank

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/

#3 lore raw
In reply to Frank Schaefer

It's just zeroes, so it allows you to test raw write speed on any device:
dd if=/dev/zero of=/dev/hda to test your performances of hda ... normally if I get it well, /dev/zero can't be you're bottleneck.
Sam

Quoted 52 lines · Rowan Ingvar Wilson

Just as a matter of interest myself...what is it's actual function? It is used during kernel debugging to supply an input?

-----Original Message-----
From: [email protected] [mailto:[email protected]] On Behalf Of Frank Schaefer
Sent: 12 April 2002 08:19
To: [email protected]
Subject: Re: /dev/zero

Quoted 2 lines · blesson paul

Hi all
I am newbie to linux kernel. What is the use of

/dev/zero.

Quoted 11 lines

Why it is created and how to use it
regards
Blesson Paul

_________________________________________________________________
Chat with friends online, try MSN Messenger: http://messenger.msn.com

-
To unsubscribe from this list: send the line "unsubscribe

linux-kernel" in

Quoted 4 lines

the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/

Hi,

/dev/zero is a data source. It delivers zeroes ( maybe that's why this name ;-).

BTW: You are new to the linux kernel or new to linux / unix?

Regards
Frank

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/

#4 lore raw

Samuel Maftoul a écrit:
Samuel> It's just zeroes, so it allows you to test raw write speed on any Samuel> device:
Samuel> dd if=/dev/zero of=/dev/hda to test your performances of hda ... Samuel> normally if I get it well, /dev/zero can't be you're bottleneck.
Samuel> Sam

Just to save Samuel's soul ;-)
the dd command supplied above will erase your primary hard drive

To see hard drive performances, hdparm -tT /dev/hda is better.

PS: Pas sympa Samuel

Signature · 1 line
Guillaume Gimenez