Listing contents of a DVD
How do I get a list of the contents of a DVD?
What I want to do is to be able to print this list out to put into a DVD case. So far, I've tried ls but the list gets cut off about a quarter of the way through, depending on the length of the window. I've tried du but all I get is 0 and the name of the DVD. |
the length of a window?? what do you mean? ls will list files and directories, not sure what that's not meant to provide... what else do you expect?
|
The DVD has some 3,000 files on it from 00 and a to z and the top of the terminal screen after typing the ls command only had the files listed starting from j.
I just wanted a list of all the files. I just tried it again like this: ls -a /media/Pictures-old but it did not list any of the files that start with numbers and when it got to the file names that start with letters, it only started from B, not A. |
ls *will* list *all* files with that command, simple as that. it will. it's just not possible to accidentally not show files. you could do it deliberately if you really wanted to, but clearly your not. are you not just haivng trouble setting a terminal scroll back long enough?
|
You could use the more or less commands with a pipe and then it will stop at the bottom of each screen until you move it on.
|
Or you could redirect it to a file if you're going to need the output for printing.
ls > /home/username/contents.txt |
Or redirect the output to a file and scroll it in your favorite text editor.
Edit: oops... too late! ;) |
Oh man, just give him the command for crying out loud..
ls -a /media/Pictures-old | less Now you can scroll thru the list of files. Use > to output to a file. Only want to see files starting with A, do: ls -a /media/Pictures-old/A* Only want files that start with capitals: ls -a /media/Pictures-old/[A-Z]* Do the same for lower case but make the A and Z lowercase. |
Quote:
|
Quote:
|
Quote:
|
Quote:
|
You are right, trickykid. It is scrolling past and I didn't know how to get it to pause.
I will write down the commands and try them out. Thanks everyone! If I still have trouble, this lady will be back. :D |
Damnit, we should have a sex info in profiles, been referring to him and he and it's been a lady the whole time.. :(
|
There's always ctrl-s and ctrl-q to suspend/restart output.
|
Quote:
Then just use page up or down to scroll. ctrl-s and ctrl-q I could imagine you might skip some lines that scroll by too quickly.. ;) |
lol, trickykid, that's ok, I especially get that due to my nickname.
|
All times are GMT -5. The time now is 12:58 AM. |