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-17-2010, 04:27 PM   #1
ghantauke
Member
 
Registered: Nov 2010
Posts: 114

Rep: Reputation: 6
how do i create trash shortcut in my desktop in ubuntu


I tried using the command
ln -s ~/Desktop ~/.local/share/Trash
I get this message.
ln: creating symbolic link `/home/denish/.local/share/Trash': File exists
But the link isn't in my desktop.

So I tried accessing the Trash folder using cd. I cd into ~/.local/share then try the following command.
cd Trash
I get this message.
bash: cd: Trash: No such file or directory

When I type ls in the share folder I get the following.
gsettings-data-convert gvfs-metadata Trash

So the trash folder is in there but i can't access it. Why?

Also I want a computer shortcut in my desktop like in windows where I can access all the folders from. Need help please.
 
Old 11-17-2010, 04:39 PM   #2
sys64738
Member
 
Registered: May 2008
Location: NRW/Germany
Posts: 105

Rep: Reputation: 30
See here:
http://www.howtogeek.com/howto/ubunt...buntu-desktop/
 
1 members found this post helpful.
Old 11-17-2010, 04:48 PM   #3
ghantauke
Member
 
Registered: Nov 2010
Posts: 114

Original Poster
Rep: Reputation: 6
Quote:
Originally Posted by sys64738 View Post
Thanks. That answered both of my questions.
 
Old 11-17-2010, 04:52 PM   #4
Snark1994
Senior Member
 
Registered: Sep 2010
Location: Wales, UK
Distribution: Arch
Posts: 1,632
Blog Entries: 3

Rep: Reputation: 345Reputation: 345Reputation: 345Reputation: 345
I know you've solved it, but I thought I'd point out that the problem was just with your command... The "man" pages are your friend here

man ln:
Code:
NAME

       ln - make links between files

SYNOPSIS

       ln [OPTION]... [-T] TARGET LINK_NAME   (1st form)
       ln [OPTION]... TARGET		      (2nd form)
       ln [OPTION]... TARGET... DIRECTORY     (3rd form)
       ln [OPTION]... -t DIRECTORY TARGET...  (4th form)
You put "ln -s DIRECTORY TARGET". If you type "ln -s ~/.local/share/Trash ~/Desktop" you should get the folder pop up on your desktop
 
Old 11-24-2010, 12:12 AM   #5
TheIndependentAquarius
Senior Member
 
Registered: Dec 2008
Posts: 4,672
Blog Entries: 29

Rep: Reputation: 917Reputation: 917Reputation: 917Reputation: 917Reputation: 917Reputation: 917Reputation: 917Reputation: 917
Quote:
Originally Posted by ghantauke View Post
I tried using the command
ln -s ~/Desktop ~/.local/share/Trash
I get this message.
ln: creating symbolic link `/home/denish/.local/share/Trash': File exists
But the link isn't in my desktop.
This has been perhaps already pointed out, you had swapped the source and destination targets in the ln command:
Correct way would be:
Code:
ln -s ~/.local/share/Trash ~/Desktop
You could have also done this:
Code:
cd ~/Desktop
ln -s ~/.local/share/Trash .
 
  


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
how to create a desktop url shortcut craftereric Linux - Newbie 5 11-16-2010 06:08 PM
How do I create a shortcut of my windows files on the desktop? caa1980 Linux Mint 1 07-24-2009 06:05 AM
How to create a desktop shortcut to a JAR file? jdruin Linux - Newbie 4 01-04-2009 04:55 PM
create a shortcut in /home/username/Desktop but not still not appear on desktop! swgiant Linux - Newbie 1 09-27-2008 12:51 PM
How to create a desktop shortcut ? juanb Linux - General 1 07-01-2004 04:27 AM


All times are GMT -5. The time now is 08:43 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