Use the -L option to the ls command, because some directories under /floppy and /cdrom are symbolic links.
$ ls -L [-l] /cdrom/cdrom0 |
-L |
Includes symbolic links in the output. |
-l |
Long format. Includes permissions and owners in the output. |
The following example lists the contents of the CD loaded into the first CD-ROM directory, /cdrom/cdrom0.
$ ls -L -l /cdrom/cdrom0 dr-xr-xr-x 2 root sys 2048 Dec 31 1993 tools dr-xr-xr-x 2 root sys 2048 Dec 31 1993 graphics |