• We did not send an email asking for donations - please read this post.

How to create a shortcut of a folder in Ubuntu at desktop?

balenshah

Member
Joined
Aug 23, 2022
Messages
43
Reaction score
4
Credits
362
I just need a way to access a folder directly by clicking on desktop.
This answers just copies that folder to desktop instead of just a shortcut.
So, what's the way to do it? Is it impossible?
 


rado84

Well-Known Member
Joined
Feb 25, 2019
Messages
647
Reaction score
518
Credits
3,613
The same way as you create a shortcut to a prorgram, only type a command like
Code:
pcmanfm /media/1000GB/123_1000/
and when you double click the shortcut, it will open the relevant directory in your file manager.

Another way is to create a bash file with a similar command and put it on the desktop:
Code:
sh -e nemo /path/to/target/dir/
and the result will be the same - your file manager will open the target directory.
 

forester

Active Member
Joined
Mar 5, 2022
Messages
442
Reaction score
240
Credits
3,148
Post #16 gives the answer.
A symbolic link is what is needed
Code:
ln -s path/to/sourcefile /home/username/Desktop/ (file or dir name)
 

bob466

Well-Known Member
Joined
Oct 22, 2020
Messages
652
Reaction score
461
Credits
4,784
You could try this...
 

forester

Active Member
Joined
Mar 5, 2022
Messages
442
Reaction score
240
Credits
3,148
I can make 10 links or more in the time it takes to do all that point-and-click bs.
 

bob466

Well-Known Member
Joined
Oct 22, 2020
Messages
652
Reaction score
461
Credits
4,784
Back in the old and sad days of windwoes shortcuts were a thing as I remember but since switching to Linux I've never had a use for them or windwoes either for that matter.
happy0009.gif
 
OP
B

balenshah

Member
Joined
Aug 23, 2022
Messages
43
Reaction score
4
Credits
362
The same way as you create a shortcut to a prorgram, only type a command like
Code:
pcmanfm /media/1000GB/123_1000/
and when you double click the shortcut, it will open the relevant directory in your file manager.

Another way is to create a bash file with a similar command and put it on the desktop:
Code:
sh -e nemo /path/to/target/dir/
and the result will be the same - your file manager will open the target directory.
Could you please explain this? I didn't get how I'd use this in my laptop.
 

rado84

Well-Known Member
Joined
Feb 25, 2019
Messages
647
Reaction score
518
Credits
3,613
Could you please explain this? I didn't get how I'd use this in my laptop.
Open a new text file and write this:

Code:
[Desktop Entry]
Encoding=UTF-8
Version=1.0
Type=Application
Terminal=false
Exec=nemo /media/1000GB
Name=enter whatever name you want
Icon=/path/to/icon

Then save it to the desktop as something like "Nemo-media-dir.desktop". Double click it and it will open the target directory in Nemo.
 

wizardfromoz

Administrator
Staff member
Gold Supporter
Joined
Apr 30, 2017
Messages
7,790
Reaction score
6,615
Credits
28,677

bob466

Well-Known Member
Joined
Oct 22, 2020
Messages
652
Reaction score
461
Credits
4,784
Just a heads up @rado84 - the OP is on Ubuntu Desktop, that's Nautilus (aka Files) not Nemo.

Avagudweegend

Wiz
Got it...I followed the same instruction in Linux Mint and it worked for me.
happy0035.gif
 

rado84

Well-Known Member
Joined
Feb 25, 2019
Messages
647
Reaction score
518
Credits
3,613
Just a heads up @rado84 - the OP is on Ubuntu Desktop, that's Nautilus (aka Files) not Nemo.

Avagudweegend

Wiz
So he'll just replace "nemo" with "nautilus", I think it's obvious.
 

wizardfromoz

Administrator
Staff member
Gold Supporter
Joined
Apr 30, 2017
Messages
7,790
Reaction score
6,615
Credits
28,677

MikeWalsh

Member
Joined
Aug 29, 2022
Messages
93
Reaction score
92
Credits
1,157
Not much help to users of mainstream distros, I know, but I adore Puppy's powerful ROX-filer sym-link function. I'm faster with this than I ever can be via the CLI or Bash. Drag (from anywhere)->drop (to anywhere); up comes a wee window->Link (relative) or Link (absolute). Sorted.

You cannot believe its ease-of-use until you've tried it. ROX-filer is extremely underrated.

Just a heads up @rado84 - the OP is on Ubuntu Desktop, that's Nautilus (aka Files) not Nemo.

(This is, of course, where Wiz's huge stable of distros comes in so handy.....because it lets him distinguish between all those small details. I MAY run several distros.....but they're all from the same "kennels", and all function the same way. So I'm really not much use to anybody outside of the Puppy-sphere!)

I don't know how Wiz finds the time to separately maintain all those different distros. I run about 10 Puppies.....and at that, most share common, architecture-agnostic resources - like themes, fonts, scripted utilities, and some "noarch" items - from an external partition.

And that's all making use of Pup's sym-link function.


Mike. ;)
 
Last edited:

bob466

Well-Known Member
Joined
Oct 22, 2020
Messages
652
Reaction score
461
Credits
4,784
If I wanted to create a shortcut in Linux Mint I would go to...Menu...All Applications...choose Application and right click it and select either...Add to Panel or Add to Desktop.
happy0035.gif


Haven't done this for years as I don't want to clutter up Desktop or Panel.
happy0034.gif
 

Condobloke

Well-Known Member
Joined
Apr 30, 2017
Messages
5,147
Reaction score
4,319
Credits
30,310
 
$100 Digital Ocean Credit
Get a free VM to test out Linux!

Linux.org Hosting Donations
Consider making a donation

Members online


Top