Thursday, March 13, 2014

Useful Linux commands

I am not a Linux user, but I like it. It has some pretty cool features. Sometimes I know what I want from the Linux, but I don't know how to do it. This problem is very common in CLI. So, here I will dump some useful CLI commands, that I use rarely use and unfortunately can't remember.

USB stuff:

1) Check all connected USB devices:
pi@raspberrypi ~ $lsusb

2) Show descriptors for a specific USB device (16C0:5DC - VID and PID for V-USB):
pi@raspberrypi ~ $lsusb -v -d 16C0:5DC

3) Show libusb version on current system:
pi@raspberrypi ~ $dpkg -l | grep libusb

4) Install libusb library(works on Ubuntu and some other distros.):
pi@raspberrypi ~ $sudo apt-get install libusb-dev

No comments:

Post a Comment

Write your comments here...