Skip to content

ls: show device details #2140

@cbjadwani

Description

@cbjadwani

Add support to show device major and minor numbers and type (block/char).

Example:

$ ls -l /dev/input/event* | head -5
crw-rw---- 1 root input 13, 64 Apr 26 14:27 /dev/input/event0
crw-rw---- 1 root input 13, 65 Apr 26 14:27 /dev/input/event1
crw-rw---- 1 root input 13, 74 Apr 26 14:27 /dev/input/event10
crw-rw---- 1 root input 13, 75 Apr 26 14:27 /dev/input/event11
crw-rw---- 1 root input 13, 76 Apr 26 14:27 /dev/input/event12

The 'c' in crw-rw---- is for the type of device and 13, 76 are major and minor numbers of the device.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions