---
layout: default
title: usr/share/doc/sysbox/html/tool/lsmaj.html
---
Sysbox: lsmaj
Sysbox: lsmaj
Usage: lsmaj [OPTION]...List device major numbers exists in the system. The major numbers are stored in the system service (sysvc), so this tool will communicate with the sysvc.
Important! The Threos OS assign device major numbers during the boot, so it is absolutely not guaranteed that a device get the same major number after reboot.
Options:
- -n
Organize the output by name. - -N
Organize the output by name, but in case insensitive mode. - -m
Organize the output by major number. This is the default mode.
Examples:
$ lsmaj 1 Registry 2 sysvc 3 bufgroup 4 eser 5 syslog 6 libsvc 8 acpi_dev 9 ttyS0 10 ttyS1 11 input0 12 tty0 13 cmosrtc_dev 14 devman 15 partsvc 16 tcpip 17 pty 18 bootfs 19 tmpfs 20 adminsvc 21 ffs 22 ext2 23 FAT32 24 pci 25 sata0 26 vfs 27 eth0 $ $ lsmaj -N 8 acpi_dev 20 adminsvc 18 bootfs 3 bufgroup 13 cmosrtc_dev 14 devman 4 eser 27 eth0 22 ext2 23 FAT32 21 ffs 11 input0 6 libsvc 15 partsvc 24 pci 17 pty 1 Registry 25 sata0 9 ttyS0 10 ttyS1 5 syslog 2 sysvc 16 tcpip 19 tmpfs 12 tty0 26 vfs $