Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

what is c and b in crwxrwxrwx and brwxrwxrwx

1,585 views
Skip to first unread message

Mark Salvador

unread,
Jul 19, 1998, 3:00:00 AM7/19/98
to
I also curious about the permission...

what is c in crwxrwxrwx ?

what is b in brwxrwxrws ?

pls feel free to answer...

Thanks

Mark

Loren Coe

unread,
Jul 19, 1998, 3:00:00 AM7/19/98
to
In article <35b28700...@news.nsclub.net>,

Mark Salvador <mar...@nsclub.net> wrote:
>I also curious about the permission...

i love these cryptic questions. sorta like my mother-in-law, just
out of the blue dares you to answer a perfectly 'simple' question
and not tell her that without further information the question
is a little bit leading..., and maybe silly.

>what is c in crwxrwxrwx ?

where exactly did you see this? can you give the output of a command
by cut and paste (instead of typing it in from memory ;-).

>what is b in brwxrwxrws ?

if you lose the x's, these look like permissions for device special
files in /dev. c=char, b=block.

>pls feel free to answer... > >Thanks > >Mark

and you feel free to give more (accurate) details when posing
questions.

loren

J.M. Paden

unread,
Jul 19, 1998, 3:00:00 AM7/19/98
to
mar...@nsclub.net (Mark Salvador) wrote:

>I also curious about the permission...

>what is c in crwxrwxrwx ?

Character device file

>what is b in brwxrwxrws ?

Block device file


Regards,
jmp...@mnsinc.com
"F. Nietzche will be a bore"
-Plato


robert_bergfors

unread,
Jul 19, 1998, 3:00:00 AM7/19/98
to
Mark Salvador <mar...@nsclub.net> wrote:
>I also curious about the permission...
>what is c in crwxrwxrwx ?
Character device (eg. a mouse)

>what is b in brwxrwxrws ?

Block device (eg. a hard drive)

Look at the man page for 'ls'

--
Robert Bergfors
ro...@nospam.penti.sit.fi
Remove the first part of the domain name :-)
Spam me at: abuse@localhost

Jürgen Exner

unread,
Jul 20, 1998, 3:00:00 AM7/20/98
to

Mark Salvador wrote in message <35b28700...@news.nsclub.net>...

>I also curious about the permission...
>what is c in crwxrwxrwx ?
>what is b in brwxrwxrws ?


"C"haracter special device (e.g. tty, tape streamer, virtual consoles,
printer, modem, ....) and "B"lock special device (HD, floppies, CD-ROMs,
...). Only block special devices can be used with a file system and mounted.

Actually this has little to do with Linux but is basic standard UNIX
terminology

jue
--
Jürgen Exner; jurgenex AT microsoft.com
Sorry for this anti-spam inconvenience


Mark Whitaker

unread,
Jul 21, 1998, 3:00:00 AM7/21/98
to
On Sun, 19 Jul 1998 23:55:29 GMT, mar...@nsclub.net (Mark Salvador)
wrote:

>I also curious about the permission...
>
>what is c in crwxrwxrwx ?
>
>what is b in brwxrwxrws ?
>

>pls feel free to answer...

I'm quoting from O'Reilly's "Running Linux" (because otherwise it
might give the impression I know what I'm talking about...

"When using ls -l to list device files in /dev, you'll see something
like the following:

brw-rw---- 1 root disk 3, 0 May 19 1994 /dev/hda

This is /dev/hda, which corresponds to the first IDE drive. First of
all, note that the first letter of the permissions field is a b, which
means this is a block device file. (Recall that normal files have a -
in this column, directories a d, and so forth.) Device files are
denoted either by b, for block devices, or c, for character devices. A
block device is usually a peripheral such as a hard drive: data is
read and written to the device as entire blocks (where the block size
is determined by the device; it may not be the 1024 bytes we usually
call 'blocks' under Linux), and the device may be accessed randomly.
In contrast, character devices are usually read or written to
sequentially, and I/O may be done as single bytes. An example of a
character device is a serial port."

The book also goes on to explain what the "3, 0" stands for, but this
remains tantalisingly withheld! If you're a Linux novice like me, I'd
definitely recommend you buy a copy -- it helped me get round no end
of mysteries, including what the "3, 0" stands for...

(Matt Welsh & Lar Kaufman, "Running Linux", 2nd Edition, O'Reilly &
Associates, 1-56592-151-8 -- please buy it and they won't sue me for
posting large chunks of it to newsgroups :)

Mark

--
Today's posting was brought to you by the author Mark Whitaker,
the URL http://www.blurb.u-net.com/ and the PGP Key B0760F5D.

Please reply to mark 'at' blurb 'dot' u-net 'dot' com
(Apologies for the inconvenience!)

Steve Harvey

unread,
Jul 21, 1998, 3:00:00 AM7/21/98
to
On Tue, 21 Jul 1998 07:22:50 GMT, loca...@local.domain (Mark
Whitaker) wrote:


>The book also goes on to explain what the "3, 0" stands for, but this
>remains tantalisingly withheld! If you're a Linux novice like me, I'd
>definitely recommend you buy a copy -- it helped me get round no end
>of mysteries, including what the "3, 0" stands for...
>
>(Matt Welsh & Lar Kaufman, "Running Linux", 2nd Edition, O'Reilly &
>Associates, 1-56592-151-8 -- please buy it and they won't sue me for
>posting large chunks of it to newsgroups :)


Hey, that's not nice, telling someone they have to go out and spend
money and buy a book to answer such a simple question. ;-D For those
who don't want to wait until they can get to a bookstore, the mknod
man page will also offer some useful hints as to the meaning of the
"3, 0"

But with that said, "Running Linux" is a very nice book, and any
novice-to-intermediate Linux user should find lots of use in it. It's
got the usual "how to set up Linux" section, and a cursory overview
(sometimes a little too cursory, but hey) of everything from
networking to programming, including lots of interesting tidbits about
gcc and some of the Linux-specific tools.


-Steve


Keith Krajewski

unread,
Jul 22, 1998, 3:00:00 AM7/22/98
to
*WARNING THIS ARTICLE HAS OFFTOPIC INFORMATION AND MAY BE INAPPROPRIATE FOR
IMMATURE AUDIENCES. IF YOU HAVE ANY FEARS OF OFFTOPIC POSTINGS (OR WOULD
OTHERWISE FLAME ME FOR DOING SO) THEN PLEASE LEAVE NOW*

You have been warned.

: Hey, that's not nice, telling someone they have to go out and spend


: money and buy a book to answer such a simple question. ;-D For those
: who don't want to wait until they can get to a bookstore, the mknod
: man page will also offer some useful hints as to the meaning of the
: "3, 0"

Who said anything about buying it? I just looked it up online and my
library has it.

: But with that said, "Running Linux" is a very nice book, and any


: novice-to-intermediate Linux user should find lots of use in it. It's

My library has that also.

: got the usual "how to set up Linux" section, and a cursory overview


: (sometimes a little too cursory, but hey) of everything from
: networking to programming, including lots of interesting tidbits about
: gcc and some of the Linux-specific tools.

Take more faith in your public library. (As you can see from my mail
address, I use the library for internet access. I'm kind of biased.)

Bless me father, for I have posted offtopic.
(Father: "Say 10 rosaries!")

--
Keith Krajewski | p055...@pb.seflin.org | eit...@concentric.net
"We are all idiots interrupted by moments of intelligence." - Scott Adams
members.xoom.com/eithkay | concentric.net/~eithkay


0 new messages