Date: Fri, 3 Mar 2000 09:46:06 -0800 (PST) From: David Wolfskill <dhw@whistle.com> To: freebsd-newbies@FreeBSD.ORG, kamidesu@hotpop.com Subject: Re: Question Message-ID: <200003031746.JAA06768@pau-amma.whistle.com> In-Reply-To: <20000303171620.D037E639C7@zagnut.hotpop.com>
next in thread | previous in thread | raw e-mail | index | archive | help
>From: m <kamidesu@hotpop.com> >Date: Fri, 03 Mar 2000 12:16:20 -0500 (EST) > I came here, being this a pretty small tiny petty doubt in my mind. > Look at this dir listing. >-r-xr-xr-x 1 root wheel 33316 Sep 16 18:48 MAKEDEV >-r-xr-xr-x 1 root wheel 2068 Sep 16 18:48 MAKEDEV.local >brw-r----- 1 root operator 19, 0 Nov 19 18:29 acd0a >brw-r----- 1 root operator 19, 2 Nov 19 18:29 acd0c >crw-rw---- 1 root operator 39, 0 Nov 19 18:29 apm >crw-rw---- 1 root operator 39, 8 Nov 19 18:29 apmctl >The numbers after OPERATOR are the file sizes, right? >How come!?!?!? 39, 0? blocks? and in the same listing, we have numbers >like 2068 ... For the entries that begin either "brw-" or "crw-", no. Those are block- and character-mode "device special" files (respectively). And for device specail files, the "file size" doesn't make sense, so ls shows the "major" and "minor" device numbers there (respectively). (The "major" device indicates which driver handles the device; the minor device indicates which occurrence of the kind of device it is.) Cheers, david -- David Wolfskill dhw@whistle.com UNIX System Administrator voice: (650) 577-7158 pager: (888) 347-0197 FAX: (650) 372-5915 To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-newbies" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200003031746.JAA06768>