LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
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!

Notices


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

Rep: Reputation: 0
listing of files on CD


how do one list the files or contents from a cd
 
Old 11-06-2011, 04:19 PM   #2
tronayne
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: 1060Reputation: 1060Reputation: 1060Reputation: 1060Reputation: 1060Reputation: 1060Reputation: 1060Reputation: 1060
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
Code:
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
Code:
cd path-to-the-CD-ROM
find . -type f -exec ls {} \;
Hope this helps some.
 
  


Reply


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

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 06:45 PM.

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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration