0

This is a part of /dev in CentOS 6.6. What is the meaning of the minor number for directories like ., .. , bsg, block and ... ?

drwxr-xr-x. 18 root root        3800 Jul  3 06:00 .
dr-xr-xr-x. 21 root root        4096 Jul  3 05:59 ..
crw-rw----.  1 root video    10, 175 Jul  3 05:59 agpgart
drwxr-xr-x.  2 root root         620 Jul  3 05:59 block
drwxr-xr-x.  2 root root          80 Jul  3 05:59 bsg
crw-------.  1 root root     10, 234 Jul  3 05:59 btrfs-control
drwxr-xr-x.  3 root root          60 Jul  3 05:59 bus
lrwxrwxrwx.  1 root root           3 Jul  3 05:59 cdrom1 -> sr0
lrwxrwxrwx.  1 root root           3 Jul  3 05:59 cdrw1 -> sr0
drwxr-xr-x.  2 root root        3000 Jul  3 06:00 char
5

For files which are not device that is not the minor number but the size in bytes.

The size of a directory depends on which filesystem is used, and how many entries (i.e. files or subdirectories) are in it.

  • So, how can i find the size of character device and block device files? – ali Jul 3 '15 at 15:00
  • 1
    @ali the device files are zero size. The information required is stored in the directory entry – pqnet Jul 3 '15 at 15:15
  • @pqnet Actually the inode. (Depends on filesystem of course; IIRC FAT32 has no inodes, but then again it has no device files either) – user253751 Dec 13 '15 at 4:31
3

Those are not minor numbers (as they are for the device nodes). This answer explains each field in turn.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.