• Skip to primary navigation
  • Skip to main content
  • Skip to primary sidebar
  • Skip to footer navigation

The Geek Diary

  • OS
    • Linux
    • CentOS/RHEL
    • Solaris
    • Oracle Linux
    • VCS
  • Interview Questions
  • Database
    • oracle
    • oracle 12c
    • ASM
    • mysql
    • MariaDB
  • DevOps
    • Docker
    • Shell Scripting
  • Big Data
    • Hadoop
    • Cloudera
    • Hortonworks HDP

lshal Command Examples in Linux

by admin

The lshal command lists all devices the hardware abstraction layer (HAL) knows about, which should be most hardware on your system.

lshal Command OPtions

Option Description
-m, –monitor Print changes emitted by the hald daemon.
-s, –short Short output.
-t, –tree Display the devices organized in a tree.
-u, –show Show only the given UDI (Unique Device Identifier).
-h, –help Print out usage.
-V, –version Print the version.

lshal Command Examples

1. To list HAL devices:

# lshal 

2. To print changes emitted by the hald daemon:

# lshal -m
# lshal --monitor 

3. To get the short output:

# lshal -s
# lshal --short 

4. To display the devices organized in a tree:

# lshal -t
# lshal --tree 

5. To show only the given UDI:

# lshal -u
# lshal --show 

6. To print out usage:

# lshal -h
# lshal --help 

7. To print the version:

# lshal -V
# lshal --version 

Filed Under: Linux

Some more articles you might also be interested in …

  1. Unmounting a Windows Share Fails in Linux
  2. CentOS / RHEL : How to create a Thinly Provisioned Logical Volume
  3. SSSD Service Failing with “SSSD is already running” in CentOS/RHEL 7
  4. RCRON – Setup High Availability of cron Jobs
  5. Beginners Guide to yum Configuration
  6. Understanding SELinux Booleans
  7. CentOS / RHEL 7 : How to create custom script to run automatically during boot
  8. How to add or delete a samba user under Linux
  9. Beginners Guide to Managing Package Module Streams in CentOS/RHEL 8
  10. How to Increase KVM Guest vCPU Resources

You May Also Like

Primary Sidebar

Recent Posts

  • vgextend Command Examples in Linux
  • setpci command – configure PCI device
  • db_load command – generate db database
  • bsdtar command – Read and write tape archive files

© 2022 · The Geek Diary

  • Archives
  • Contact Us
  • Copyright