LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Bodhi
User Name
Password
Bodhi This forum is for the discussion of Bodhi Linux.

Notices


Reply
  Search this Thread
Old 09-25-2018, 06:30 AM   #1
madmax25
Member
 
Registered: Aug 2018
Posts: 50

Rep: Reputation: Disabled
BL4.5.0-64bit - How to create a link to folder, please?


I'd like to have quicker access between two folders,
so, how can I create a link from a folder to another one, please?

EDIT:
I found it.
In Terminology, I had to do

Code:
ln -s /path/to/link-target /path/of/where/to/put/link
Isn't there a way without typing the sometimes very long paths, i.e. without using the terminal?

Last edited by madmax25; 09-25-2018 at 09:18 AM.
 
Old 09-25-2018, 08:59 AM   #2
MensaWater
LQ Guru
 
Registered: May 2005
Location: Atlanta Georgia USA
Distribution: Redhat (RHEL), CentOS, Fedora, CoreOS, Debian, FreeBSD, HP-UX, Solaris, SCO
Posts: 7,553
Blog Entries: 15

Rep: Reputation: 1494Reputation: 1494Reputation: 1494Reputation: 1494Reputation: 1494Reputation: 1494Reputation: 1494Reputation: 1494Reputation: 1494Reputation: 1494
You can shorten things a bit:
1) Create the link while sitting in the directory where you want "/path of where to put link" so you only have to type the name. e.g.
RATHER THAN:
ln -s /this/dir/is/very/long/dont/you/think /this/otherdir/is/also/very/long/to/type
INSTEAD:
cd /this/otherdir/is/also/very/long/to
ln -s /this/dir/is/very/long/dont/you/think type

Any later references to "/this/otherdir/is/also/very/long/to/type" will work just as they would if you'd done the first syntax.

2) If the directories have a common path you can use relative links e.g.:
RATHER THAN:
ln -s /this/dir/is/very/long/dont/you/think /this/dir/is/very/long/dont/we/know
INSTEAD:
cd /this/dir/is/very/long/dont/we
ln -s ../../you/think know

The ../../ makes it relative to the common /this/dir/is/very/long/dont subdirectory of both the target and the link.

Last edited by MensaWater; 09-25-2018 at 09:12 AM.
 
Old 09-25-2018, 09:32 AM   #3
madmax25
Member
 
Registered: Aug 2018
Posts: 50

Original Poster
Rep: Reputation: Disabled
Isn't there a way, when right clicking a folder, to create a context option like "Create a link to that folder"?
Then you could move that link to wherever you need it.

Would be quite a handy thing, I guess.
 
Old 09-25-2018, 09:40 AM   #4
MensaWater
LQ Guru
 
Registered: May 2005
Location: Atlanta Georgia USA
Distribution: Redhat (RHEL), CentOS, Fedora, CoreOS, Debian, FreeBSD, HP-UX, Solaris, SCO
Posts: 7,553
Blog Entries: 15

Rep: Reputation: 1494Reputation: 1494Reputation: 1494Reputation: 1494Reputation: 1494Reputation: 1494Reputation: 1494Reputation: 1494Reputation: 1494Reputation: 1494
There probably is but I don't spend a lot of time in GUIs myself. The real power comes at command line.

These days even MS Windows servers don't install the GUI by default and they recommend using command line (Powershell).
 
Old 09-25-2018, 12:25 PM   #5
the_waiter
Bodhi Developer
 
Registered: Jun 2018
Location: Banská Bystrica, Slovakia
Distribution: Bodhi Linux
Posts: 191

Rep: Reputation: 118Reputation: 118
You can create a symlink with a particular SW. From time to time I use Double Commander and under Files menu item you can find creating a symbolic link.

Last edited by the_waiter; 09-25-2018 at 01:20 PM.
 
Old 09-25-2018, 12:50 PM   #6
enigma9o7
Member
 
Registered: Jul 2018
Location: Silicon Valley
Distribution: Bodhi 5 (Ubuntu 18.04)
Posts: 158

Rep: Reputation: Disabled
Quote:
Originally Posted by madmax25 View Post
how can I create a link from a folder to another one, please?

Isn't there a way without typing the sometimes very long paths, i.e. without using the terminal?
Yes, you can do it in pcmanfm.

Find the folder you want linked somewhere else. Highlight it. From the pull down menu select edit/Create Link. Then select the folder you want to put the link.
 
Old 09-25-2018, 01:00 PM   #7
madmax25
Member
 
Registered: Aug 2018
Posts: 50

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by enigma9o7 View Post
Yes, you can do it in pcmanfm.

Find the folder you want linked somewhere else. Highlight it. From the pull down menu select edit/Create Link. Then select the folder you want to put the link.
Wow, a-ma-zing!!!
Didn't know it was that easy!
Much better than the uncomfortable way with the terminal.

Thank you very much!
 
  


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
BL4.5.0-64bit - Need command to start Moksha from command line? madmax25 Bodhi 4 10-04-2018 11:30 AM
BL4.5.0.64bit - Vino tray icon missing madmax25 Bodhi 2 09-23-2018 10:34 AM
BL4.5.0-64bit - ukuu doesn't show what it is doing. madmax25 Bodhi 2 09-23-2018 10:29 AM
How to create a shortcut to access the folder in terminal? Mike_Brown Linux - Newbie 1 11-25-2015 12:26 PM
Root Folder Shortcut Shoal Linux - Newbie 6 08-11-2004 01:02 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Bodhi

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