[ale] Command Line Question.

Michael B. Trausch mbt at zest.trausch.us
Wed Jul 1 11:57:52 EDT 2009


On Wed, 1 Jul 2009, Jim Moore wrote:
>
> I then tried to access the USB from the command line and realized I
> didn't know how to get to it and view the files on it.
> How do I do that?
> Jim
>

To view the list of currently-connected USB devices, you can use the “lsusb” 
command.  Its output looks like this:

Wednesday, 2009-Jul-01 at 03:32:13 - mbt at zest - Linux v2.6.30
Ubuntu Jaunty:[2-56/10578-1]:vala> lsusb
Bus 002 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 004 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 001 Device 003: ID 1307:0330 Transcend Information, Inc.
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 003 Device 002: ID 045e:00f1 Microsoft Corp.
Bus 003 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub

You can see what devices are at least plugged-in that way.  Also, if you need 
to know what the name of the device node is for a given device, you can run 
“sudo dmesg -c”, plug the device in, wait 10 seconds or so, and run “dmesg” 
(without sudo or -c).  The output will give you the drive node name and a 
partition list, if the device has partitions.

 	HTH,
 	Mike


More information about the Ale mailing list