LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
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 06-08-2010, 03:12 AM   #1
masatheesh
Member
 
Registered: Aug 2007
Distribution: CentOS 5.0,CentOS 5.5
Posts: 47

Rep: Reputation: 15
How to view CD shortcut link


Hi,

Whenever we insert CD,it creates a shortcut link in desktop.Can we list this link name by using any command? I am using Oracle Enterprise Linux 5.0.
 
Old 06-08-2010, 03:22 AM   #2
druuna
LQ Veteran
 
Registered: Sep 2003
Posts: 10,532
Blog Entries: 7

Rep: Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405
Hi,

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).

Hope this helps.
 
Old 06-08-2010, 04:04 AM   #3
masatheesh
Member
 
Registered: Aug 2007
Distribution: CentOS 5.0,CentOS 5.5
Posts: 47

Original Poster
Rep: Reputation: 15
Thanks for your response.

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?

I hope I made it clear
 
Old 06-08-2010, 04:19 AM   #4
druuna
LQ Veteran
 
Registered: Sep 2003
Posts: 10,532
Blog Entries: 7

Rep: Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405
Hi,

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.

Hope this helps.

BTW: I am assuming you do this from a terminal.
 
Old 06-08-2010, 04:38 AM   #5
masatheesh
Member
 
Registered: Aug 2007
Distribution: CentOS 5.0,CentOS 5.5
Posts: 47

Original Poster
Rep: Reputation: 15
Hi,

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.
 
Old 06-08-2010, 04:53 AM   #6
druuna
LQ Veteran
 
Registered: Sep 2003
Posts: 10,532
Blog Entries: 7

Rep: Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405
Hi,

What does ls -la /home/user/Desktop show? (replace user with actual user).
 
Old 06-08-2010, 05:27 AM   #7
masatheesh
Member
 
Registered: Aug 2007
Distribution: CentOS 5.0,CentOS 5.5
Posts: 47

Original Poster
Rep: Reputation: 15
It gives list all other files except shortcut name.

BTW: I can view the content of CD.I just want to list out this shortcut for curiosity.
 
Old 06-08-2010, 05:32 AM   #8
druuna
LQ Veteran
 
Registered: Sep 2003
Posts: 10,532
Blog Entries: 7

Rep: Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405
Hi,
Quote:
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.
I figured as much

Hope this helps.
 
Old 06-08-2010, 06:44 AM   #9
masatheesh
Member
 
Registered: Aug 2007
Distribution: CentOS 5.0,CentOS 5.5
Posts: 47

Original Poster
Rep: Reputation: 15
Hi,

By using find command also,I am not able to view it.Still I am searching for wayout.
 
Old 06-08-2010, 06:46 AM   #10
druuna
LQ Veteran
 
Registered: Sep 2003
Posts: 10,532
Blog Entries: 7

Rep: Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405
Hi,

I've emptied my resources.

Hopefully someone else will have the answer for you.......
 
Old 06-08-2010, 07:42 AM   #11
masatheesh
Member
 
Registered: Aug 2007
Distribution: CentOS 5.0,CentOS 5.5
Posts: 47

Original Poster
Rep: Reputation: 15
Thanks for your helping tendency
 
  


Reply



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
Frustration! - GnoMenu and Menu Bar - Lost my two desktop view shortcut key ieatbunnies Linux - Newbie 2 02-18-2010 02:44 PM
VLC ctrl+H minimal view shortcut is not working wanas Linux - Software 0 08-11-2009 01:21 AM
keyboard shortcut for a link? newbiesforever Linux - General 2 08-02-2007 01:38 PM
Making a shortcut/link? Yig Linux - Newbie 2 12-06-2006 01:36 PM
shell script link/shortcut in KDE sanger440 Linux - Newbie 7 02-12-2004 05:37 PM

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

All times are GMT -5. The time now is 06:08 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
Open Source Consulting | Domain Registration