To list the devices on your computer from the Linux terminal, you can use the “lsblk” command. Here are the steps:
- Open the terminal: Launch the terminal application on your Linux system.
- Run the “lsblk” command: Type “lsblk” and press Enter to run the command. This will display a list of all the block devices on your system, including hard drives, solid-state drives (SSDs), USB drives, and memory cards.
- Use “sudo” for more detailed information: If you want to see more detailed information about the devices, such as the device size, file system, and mount point, you can use the “sudo lsblk -f” command. This will display the same information as the “lsblk” command, but with additional details.
- Use “lspci” to list PCI devices: If you want to list the PCI devices on your system, such as network adapters, sound cards, and graphics cards, you can use the “lspci” command. This command will display a list of all the PCI devices on your system, along with information about the device, such as the vendor and device ID.
That’s it! You can use these commands to list the devices on your Linux system from the terminal. Note that you may need to use the “sudo” command to run these commands with administrator privileges.