A
A
Alexander Semenenko2017-02-02 12:21:41
linux
Alexander Semenenko, 2017-02-02 12:21:41

Where can I read about device numbers in Linux, or what is it?

When I run the command:
# ls -l /dev/bus/usb/001
I see:
crw-rw-r-- 1 root root 189, 0 Jan 6 18:19 001
crw-rw-r-- 1 root root 189, 1 Jan 6 18:19 002
What is 189,*
I don’t know what it is, so I can’t form a query in Google either. Tell?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
Y
Yuri Chudnovsky, 2017-02-02
@semenenko88

https://ru.wikipedia.org/wiki/Block_device

T
tkutru, 2017-02-02
@tkutru

Alexander Semenenko , called the major and minor device numbers, is needed to associate drivers with devices. We do man ls, look at the description of the flags:
-l Print (in single-column format) the file type, file permissions, number of links to the file,
owner name, group name, file size (in bytes) , timestamp, and file name.
File types can take the following values: - for a regular file, d for a directory, b for a block
device, c for a character device , l for a symbolic link, p for a FIFO, and s for a
socket.
By default, the timestamp is the last modification time; the -c and -u options let you
select two other timestamps. For device files, the size field is usually replaced with the
major and minor device numbers
.
Further, it is easy to google
rus-linux.net/kos.php?name=/book1/gl-09/gl_09_02.html
dmilvdv.narod.ru/Translate/LDD3/ldd_major_minor_nu...

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question