LinuxQuestions.org
Review your favorite Linux distribution.
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 08-09-2020, 04:44 AM   #1
alex4buba
Member
 
Registered: Jul 2020
Posts: 620

Rep: Reputation: Disabled
How to create a desktop shortcut to a File, to a Folder - Ubuntu 20.04


All that I can find on searching th etopic are some "Hard ways" about it.

I wonder, is there an easy way to do that? I have some frequently used documents, I know I can place them on the dekstop, but this is not safe in my opinion

Thanks
Alex
 
Old 08-09-2020, 05:44 AM   #2
ondoho
LQ Addict
 
Registered: Dec 2013
Posts: 19,872
Blog Entries: 12

Rep: Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053
right-click an empty space on the desktop => "create new launcher" or some such.

You can also create symblic links. Many filemanagers will do this automatically when you hold an additional key (maybe Control) while dragging a file to the desktop, but I personally would prefer to do it the "hard way":
Code:
cd ~/Desktop
ln -s /path/to/some/file-or-folder
 
Old 08-09-2020, 07:45 AM   #3
alex4buba
Member
 
Registered: Jul 2020
Posts: 620

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by ondoho View Post
right-click an empty space on the desktop => "create new launcher" or some such.

You can also create symblic links. Many filemanagers will do this automatically when you hold an additional key (maybe Control) while dragging a file to the desktop, but I personally would prefer to do it the "hard way":
Code:
cd ~/Desktop
ln -s /path/to/some/file-or-folder
I right click on th eDesktop, but the menu that comes up doesn't have such an option.

Can you give me please more instructions the HARD way. As an example
I have a document in the DOCS fulder, the file is called alex.docx

So, please show me the steps to have a shortcut to it

Thanks
Alex
 
Old 08-11-2020, 02:08 AM   #4
ondoho
LQ Addict
 
Registered: Dec 2013
Posts: 19,872
Blog Entries: 12

Rep: Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053
Quote:
Originally Posted by alex4buba View Post
I have a document in the DOCS fulder, the file is called alex.docx

So, please show me the steps to have a shortcut to it
Assuming your Desktop folder is actually called Desktop (it is if your interface is in English), and assuming that the DOCS folder is a subfolder of your $HOME folder, you open a terminal and enter the following:
Code:
cd "$HOME/Desktop"
ln -s "$HOME/DOCS/alex.docx"
 
Old 08-11-2020, 02:35 AM   #5
alex4buba
Member
 
Registered: Jul 2020
Posts: 620

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by ondoho View Post
Assuming your Desktop folder is actually called Desktop (it is if your interface is in English), and assuming that the DOCS folder is a subfolder of your $HOME folder, you open a terminal and enter the following:
Code:
cd "$HOME/Desktop"
ln -s "$HOME/DOCS/alex.docx"
Thanks so much Ondoho, it works fine, but I have some questions:

1) Are the double quotaion marks required? Never before I used them in any command line
2) When I get in Terminal mode, it is in the root - do I have to first cd into the folder, or can I do that from the root?

Many thanks again
Alex
 
Old 08-11-2020, 10:51 AM   #6
ondoho
LQ Addict
 
Registered: Dec 2013
Posts: 19,872
Blog Entries: 12

Rep: Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053
1) You wanted the hard way No, I'd just use Tab completion. I don't know if your $HOME contains spaces, though. Double quotes are safer. Do some reading.
2) What's "root"? Maybe show us
Code:
pwd
whoami
 
Old 08-11-2020, 11:57 AM   #7
beachboy2
Senior Member
 
Registered: Jan 2007
Location: Wild West Wales, UK
Distribution: Linux Mint 21 MATE, EndeavourOS, antiX, MX Linux
Posts: 3,969
Blog Entries: 32

Rep: Reputation: 1464Reputation: 1464Reputation: 1464Reputation: 1464Reputation: 1464Reputation: 1464Reputation: 1464Reputation: 1464Reputation: 1464Reputation: 1464
alex4buba,

Right click on the file or folder and then left click on Make Link.
 
Old 08-11-2020, 04:33 PM   #8
alex4buba
Member
 
Registered: Jul 2020
Posts: 620

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by beachboy2 View Post
alex4buba,

Right click on the file or folder and then left click on Make Link.
I am using Ubuntu 20.04, right click doesn't bring up such an option

Thanks for the feedback
Alex
 
Old 08-11-2020, 04:35 PM   #9
alex4buba
Member
 
Registered: Jul 2020
Posts: 620

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by ondoho View Post
1) You wanted the hard way No, I'd just use Tab completion. I don't know if your $HOME contains spaces, though. Double quotes are safer. Do some reading.
2) What's "root"? Maybe show us
Code:
pwd
whoami
My $HOME is one word, no spaces - but I see your point

Thanks again
Alex
 
Old 08-12-2020, 10:04 AM   #10
beachboy2
Senior Member
 
Registered: Jan 2007
Location: Wild West Wales, UK
Distribution: Linux Mint 21 MATE, EndeavourOS, antiX, MX Linux
Posts: 3,969
Blog Entries: 32

Rep: Reputation: 1464Reputation: 1464Reputation: 1464Reputation: 1464Reputation: 1464Reputation: 1464Reputation: 1464Reputation: 1464Reputation: 1464Reputation: 1464
alex4buba,

Ubuntu 20.04 is therefore different to Linux Mint 20.

Try this link:
https://askubuntu.com/questions/1235...n-ubuntu-20-04
 
Old 08-15-2020, 01:22 AM   #11
alex4buba
Member
 
Registered: Jul 2020
Posts: 620

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by ondoho View Post
Assuming your Desktop folder is actually called Desktop (it is if your interface is in English), and assuming that the DOCS folder is a subfolder of your $HOME folder, you open a terminal and enter the following:
Code:
cd "$HOME/Desktop"
ln -s "$HOME/DOCS/alex.docx"
Hello again,

I had to re-install Ubuntu 20.04 and it seems I am now missing something... I was able already to create file shortcuts with your help, but my attempts now are failing with the shorct being on the desktop, but with a RED "X" on it and the options on right-click don't let me Launch it.

Please see attached images of the Properties of the link

What do you think I am missing?

Thanks again
Attached Thumbnails
Click image for larger version

Name:	Screenshot from 2020-08-15 16-10-31.png
Views:	262
Size:	36.8 KB
ID:	33868   Click image for larger version

Name:	Screenshot from 2020-08-15 16-13-23.png
Views:	186
Size:	31.6 KB
ID:	33869  
 
Old 08-15-2020, 01:36 AM   #12
alex4buba
Member
 
Registered: Jul 2020
Posts: 620

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by alex4buba View Post
Hello again,

I had to re-install Ubuntu 20.04 and it seems I am now missing something... I was able already to create file shortcuts with your help, but my attempts now are failing with the shorct being on the desktop, but with a RED "X" on it and the options on right-click don't let me Launch it.

Please see attached images of the Properties of the link

What do you think I am missing?

Thanks again
Sorry to bother you, I figured it out - I was trying to createa shortcut in a folder that was on the desktop... After searching a bit more, I found out that a shortcut can only be created to a file in an absulute folder location

Cheers
Alex
 
Old 04-30-2021, 12:33 PM   #13
englianhu
LQ Newbie
 
Registered: Oct 2015
Location: Sςιβrοκεrs TrαdιηgŪ
Distribution: CentOS, Ubuntu
Posts: 12

Rep: Reputation: Disabled
Quote:
Originally Posted by beachboy2 View Post
alex4buba,

Ubuntu 20.04 is therefore different to Linux Mint 20.

Try this link:
https://askubuntu.com/questions/1235...n-ubuntu-20-04
its work for me, thanks !
https://askubuntu.com/questions/1235...278648_1251711
 
Old 11-03-2021, 11:09 AM   #14
crtlbreak
LQ Newbie
 
Registered: Jan 2012
Distribution: Fedora, Debian & Ubuntu
Posts: 7

Rep: Reputation: Disabled
Quote:
Originally Posted by beachboy2 View Post
alex4buba,

Right click on the file or folder and then left click on Make Link.
which one is it please?

Click image for larger version

Name:	Screenshot from 2021-11-03 15-54-17.png
Views:	179
Size:	104.7 KB
ID:	37620
 
Old 11-03-2021, 02:25 PM   #15
enigma9o7
Senior Member
 
Registered: Jul 2018
Location: Silicon Valley
Distribution: Bodhi Linux
Posts: 1,388

Rep: Reputation: 560Reputation: 560Reputation: 560Reputation: 560Reputation: 560Reputation: 560
Its none of those. Ubuntu doesnt have such an option, and apparently neither does its default filemanager (at least I coudln't find it, and I just tested in VM, that file manager doesnt even have drop down menus hardly any options at all! If you install thunar or pcmanfm they have "Make Link" and "Create Link" options tho...).

The method in very first reply is the simple way, although to make it even easier just:

Code:
ln -s /path/to/file-or-folder ~/Desktop

Last edited by enigma9o7; 11-03-2021 at 02:27 PM.
 
  


Reply

Tags
desktop, shortcuts, ubuntu



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 shortcut to access the folder in terminal? Mike_Brown Linux - Newbie 1 11-25-2015 11:26 AM
How to create desktop (or task bar) shortcut to some file on Debian LXDE, OpenBox? vvladimir Linux - Newbie 2 06-08-2014 06:40 AM
how to create desktop shortcut for any exe file for all users exsting in the system satyabel Linux - Newbie 3 03-20-2009 04:14 AM
How to create a desktop shortcut to a JAR file? jdruin Linux - Newbie 4 01-04-2009 03:55 PM
create a shortcut in /home/username/Desktop but not still not appear on desktop! swgiant Linux - Newbie 1 09-27-2008 11:51 AM

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

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