LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 11-12-2015, 04:38 PM   #1
pwabrahams
Member
 
Registered: Nov 2005
Location: Deerfield MA
Distribution: OpenSuSE, Kubuntu
Posts: 293

Rep: Reputation: 41
Listing the contents of a device


On the left side of the Dolphin screen, there are several categories, one of which is "Devices". These include (on my system) "Asus","Bluetooth", a couple of disks, and some others. They aren't listed under those names within root. Their contents can be displayed in the Dolphin window, but how can I list them from the command line using ls?
 
Old 11-12-2015, 04:58 PM   #2
ardvark71
LQ Veteran
 
Registered: Feb 2015
Location: USA
Distribution: Lubuntu 14.04, 22.04, Windows 8.1 and 10
Posts: 6,282
Blog Entries: 4

Rep: Reputation: 842Reputation: 842Reputation: 842Reputation: 842Reputation: 842Reputation: 842Reputation: 842
Hi...

I'm not entirely sure what you mean but would the following commands be of help?

Code:
lshw -short
Code:
lshw
Regards...
 
Old 11-12-2015, 05:24 PM   #3
pwabrahams
Member
 
Registered: Nov 2005
Location: Deerfield MA
Distribution: OpenSuSE, Kubuntu
Posts: 293

Original Poster
Rep: Reputation: 41
lshw produces a huge amount of output but nonetheless doesn't show anything for the devices I'm particularly interested in at the moment -- the files on an Android phone accessed via mtp.
 
Old 11-12-2015, 06:13 PM   #4
ardvark71
LQ Veteran
 
Registered: Feb 2015
Location: USA
Distribution: Lubuntu 14.04, 22.04, Windows 8.1 and 10
Posts: 6,282
Blog Entries: 4

Rep: Reputation: 842Reputation: 842Reputation: 842Reputation: 842Reputation: 842Reputation: 842Reputation: 842
Quote:
Originally Posted by pwabrahams View Post
lshw produces a huge amount of output but nonetheless doesn't show anything for the devices I'm particularly interested in at the moment -- the files on an Android phone accessed via mtp.
So you're trying to access or download files from an Android phone and it's not being recognized by your system? If your connecting to the phone by USB, does "lsusb" show anything? I'm not sure what you're trying to do here.

Regards...
 
Old 11-12-2015, 07:37 PM   #5
pwabrahams
Member
 
Registered: Nov 2005
Location: Deerfield MA
Distribution: OpenSuSE, Kubuntu
Posts: 293

Original Poster
Rep: Reputation: 41
camera: is an example

For an attached digital camera, camera: will list the photos on the camera, but ls camera: will not.
 
Old 11-12-2015, 08:49 PM   #6
ardvark71
LQ Veteran
 
Registered: Feb 2015
Location: USA
Distribution: Lubuntu 14.04, 22.04, Windows 8.1 and 10
Posts: 6,282
Blog Entries: 4

Rep: Reputation: 842Reputation: 842Reputation: 842Reputation: 842Reputation: 842Reputation: 842Reputation: 842
Quote:
Originally Posted by pwabrahams View Post
For an attached digital camera, camera: will list the photos on the camera, but ls camera: will not.
Hi...

If using ls for this is possible, I'm not sure how to do it. I did find some switches (or flags) here, although I'm not sure if it will be able to tell you anything new.

Regards...

Last edited by ardvark71; 11-12-2015 at 08:50 PM. Reason: Correction.
 
Old 11-12-2015, 10:44 PM   #7
Dman58
Member
 
Registered: Nov 2010
Location: The Danger Zone
Distribution: Slackware & everything else in a VM
Posts: 294

Rep: Reputation: 31
You have to do identity the device name that it gets when plugged in. CAMERA definitely wouldn't be an option but something like

Code:
ls /media/something/or/other
Code:
ls /run/cam01/dcim
Possibly you can right class click on the device or in the url area of Dolphin to get the absolute path

Try using a file manager on the Droid to see how it identifies these things then input that same info for the 'ls' command
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Listing Zip file contents prasanta_sadhukhan Linux - General 1 10-20-2009 07:43 AM
Listing contents of a DVD gymnart Linux - General 16 01-18-2008 11:21 AM
apache listing directory contents sneakyimp Linux - Software 1 08-10-2006 12:08 PM
list contents of directory without listing contents baddah Linux - Newbie 2 06-12-2006 04:02 AM
where to find listing of distribution contents? mfeat Fedora 3 09-21-2004 11:13 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 10:48 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration