Linux - NewbieThis 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
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
I'm not entirely sure what it is you want, but maybe this helps:
mount -> shows all mounted drives, your automounted CD should be one of them (probably the last one). Both the device (something like /dev/sr0) and the directory are shown (among other things).
For example,when I insert a CD which has label as EnterpriseLinux,it mounts like /media/EnterpriseLinux automatically.Meanwhile it creates a shortcut in the name of "EnterpriseLinux" in my desktop.I assume that this shortcut is also in the form of file as everything is file in linux.Is it right? If Yes,Can we list the shortcut name "Enterpriselinux" by using command ls?
Yes everything is a file under linux (but not all files are the same......).
I do believe the shortcut you are talking about should be visible in ~/Documents (I'm not using Oracle Enterprise Linux, so the naming could be different.), and all in ~/Documents can be listed with ls.
I am using terminal to view this shortcut name under /home/user/Desktop.Here I struckup.I am not able to view it.But "EnterpriseLinux" shortcut name displays with CD icon in my desktop.
It gives list all other files except shortcut name.
Any subdirectories that might hold the link?
Too my knowledge if the link is shown on your desktop, it should reside in the ~/Desktop directory. It could be that there is a global Desktop directory, but I would not know where this one can be found.
Maybe a find on your whole system can find it. Something like (as root user): find / -iname "link-name" > 2>/dev/null. This is a resource intense command and might run for a little while.
Quote:
BTW: I can view the content of CD.I just want to list out this shortcut for curiosity.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.