Share your knowledge at the LQ Wiki.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!


  Search this Thread
Old 11-06-2011, 03:05 PM   #1
LQ Newbie
Registered: Nov 2005
Location: Edmonton, AB
Distribution: ubuntu kubuntu
Posts: 13

Rep: Reputation: 0
listing of files on CD

how do one list the files or contents from a cd
Old 11-06-2011, 03:19 PM   #2
Senior Member
Registered: Oct 2003
Location: Northeastern Michigan, where Carhartt is a Designer Label
Distribution: Slackware 32- & 64-bit Stable
Posts: 3,541

Rep: Reputation: 1063Reputation: 1063Reputation: 1063Reputation: 1063Reputation: 1063Reputation: 1063Reputation: 1063Reputation: 1063
Insert the CD-ROM, wait for it to automount or manually mount it, use the find utility to see the files on the CD-ROM with the mount utility (with no arguments) to get the mount-point of the CD-ROM, then
find path-to-the-CD-ROM -type f -exec ls {} \;
The above will show you the file names and sizes with a full path (including the CD-ROM mount point); if you'd rather not see the CD-ROM mount point, simply
cd path-to-the-CD-ROM
find . -type f -exec ls {} \;
Hope this helps some.


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 files jdnow09 Linux - Newbie 2 08-31-2009 03:21 PM
Help with listing files sandeshsk007 Linux - Software 10 12-07-2007 04:04 PM
listing files and burning files - just a question radiodee1 Debian 1 11-26-2006 07:29 AM
Listing files from within a C program? PsychosisNode Programming 4 11-16-2003 10:40 AM
listing files in apache im1crazyassmofo Linux - Software 0 07-27-2003 05:05 PM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 01:14 PM.

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