LinuxQuestions.org
Help answer threads with 0 replies.
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-30-2005, 07:15 AM   #1
exbootie
LQ Newbie
 
Registered: Nov 2005
Location: The fifth dimension
Distribution: Ubuntu 8.04
Posts: 27

Rep: Reputation: 15
Unhappy remove broken link from gnome desktop


sorry if this is a bit simple but having used windows for so long I am used to having a "my computer"toolbar, I tried to make a link to the desktop for my optical drives.. links came up as broken. cannot delete these links, right click meue does not work, drag and drop does not work. any ideas please,desktop in use is gnome. no mention in suse help.
 
Old 11-30-2005, 07:39 AM   #2
supersucker
Member
 
Registered: Jul 2004
Location: Berlin
Distribution: fedora 3
Posts: 79

Rep: Reputation: 15
have you tried

>>rm -f mylink

using the bash?

if yes, what was the output / error message?
 
Old 11-30-2005, 08:29 AM   #3
exbootie
LQ Newbie
 
Registered: Nov 2005
Location: The fifth dimension
Distribution: Ubuntu 8.04
Posts: 27

Original Poster
Rep: Reputation: 15
just tried . got invalid command.
-f: command not found
 
Old 11-30-2005, 09:09 AM   #4
ethics
Senior Member
 
Registered: Apr 2005
Location: London
Distribution: Arch - Latest
Posts: 1,522

Rep: Reputation: 45
??

the command is rm, the switch is -f

from man rm:
-f Attempt to remove the files without prompting for confirma-
tion, regardless of the file's permissions. If the file does
not exist, do not display a diagnostic message or modify the
exit status to reflect an error. The -f option overrides any
previous -i options.

the whole command should be:

Code:
rm -f /path/to/link
It will probably be ~/desktop/link
 
Old 11-30-2005, 10:44 AM   #5
exbootie
LQ Newbie
 
Registered: Nov 2005
Location: The fifth dimension
Distribution: Ubuntu 8.04
Posts: 27

Original Poster
Rep: Reputation: 15
starting in my home folder.
typing: rm -f ~desktop/link to cd rom
or rm -f desktop/link to cd rom
or rm -f desktop/link to cd rom%
gets no response at all from bash.
the links are definately in my desktop folder . am I using the wrong syntax.
I have very little experiance with command line. only a bit of basic dos.
 
Old 11-30-2005, 11:11 AM   #6
ethics
Senior Member
 
Registered: Apr 2005
Location: London
Distribution: Arch - Latest
Posts: 1,522

Rep: Reputation: 45
no response?? that should indicate it worked...

sorry i should have added -v which is verbose and would tell you what it is doing.
be careful when using rm, you cant delete important system files but you can delete user configs etc,

is the link still on the desktop then? what's it called?

using the command line:

cd ~/desktop - changes directory to /home/$USER/desktop - must be ~/
ls

see if that shows the link, also note spaces don't work for file/directory names in Linux, it treats the first single word as the entity you want, so you need to contain it with " ".

http://www.userlocal.com/helpbasic.php - basic commands
http://www.userlocal.com/helpbasic.php - rute, all things Linux
 
Old 11-30-2005, 11:46 AM   #7
exbootie
LQ Newbie
 
Registered: Nov 2005
Location: The fifth dimension
Distribution: Ubuntu 8.04
Posts: 27

Original Poster
Rep: Reputation: 15
changed directory to
~/Desktop> ls -v
what this shows is:
Temp Download
link to CD-ROM%2FDVD-ROM%20DRIVE.drive
link to link to CD-ROM%2FDVD-ROM%20Drive.drive

in the gui I can see these files in the desktop folder
and they are still on the desktop
 
Old 11-30-2005, 11:57 AM   #8
ethics
Senior Member
 
Registered: Apr 2005
Location: London
Distribution: Arch - Latest
Posts: 1,522

Rep: Reputation: 45
link to CD-ROM%2FDVD-ROM%20DRIVE.drive

Thats the EXACT filename?? the %20 are spaces?

rm -rv "link to CD-ROM%2FDVD-ROM%20DRIVE.drive"

As a side note its a good idea not to put spaces in your filenames as they can be a pain in bash
 
Old 11-30-2005, 12:26 PM   #9
exbootie
LQ Newbie
 
Registered: Nov 2005
Location: The fifth dimension
Distribution: Ubuntu 8.04
Posts: 27

Original Poster
Rep: Reputation: 15
thats got rid of one link, thanks very much but it will not remove link to link says :
cannot remove no such file or diretory
 
Old 11-30-2005, 12:44 PM   #10
exbootie
LQ Newbie
 
Registered: Nov 2005
Location: The fifth dimension
Distribution: Ubuntu 8.04
Posts: 27

Original Poster
Rep: Reputation: 15
sorry ethics, I was a bit too hasty, both files now removed. a thousand thanks for the good advice and a very good lesson on the command line, I will try to remember what you have shown me
exbootie
 
Old 03-22-2006, 01:00 PM   #11
Provogeek
LQ Newbie
 
Registered: Apr 2004
Location: Denver, CO
Distribution: Undecided
Posts: 11

Rep: Reputation: 0
ran into the same problem, thank you for posting the solution Sup
 
Old 11-18-2010, 02:07 PM   #12
Crystal_Bits
LQ Newbie
 
Registered: Dec 2008
Location: Grand Rapids Michigan
Distribution: PC/OS
Posts: 5

Rep: Reputation: 1
Cool

Thank You - This is the information needed to remove dead links on your Gnome Desktop.
 
  


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
remove all the icons from the gnome desktop urifrid Red Hat 32 12-09-2008 04:05 PM
Link to old desktop - Gnome satimis Fedora - Installation 0 07-27-2004 12:46 PM
Remove mounts from desktop gnome Justin_Time Slackware 6 06-28-2004 12:09 PM
Can't remove /boot link from desktop! snatale1 Mandriva 6 04-03-2004 12:28 AM
How do I remove the icons off of gnome desktop? javaarmy Linux - General 4 03-05-2004 05:52 PM


All times are GMT -5. The time now is 06:30 AM.

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