Is it possible for bash to recognize hardlinks or symlinks in $PATH?How to have multiple path separators in Bashbash doesn't use all directories from $PATH to search for executablebin/bash: ruby command not found. Ruby not in sudo pathcrontab xinput returns empty resultsMy PATH variable resets itself when closing terminalMy $PATH variable is messed up. How to change it back?Can I create a symlink to a Windows executable in the Windows Subsystem for Linux (WSL) PATH?Stata installation: how to add stata to the .profile PATH?
What would be the effect of a giant magical fireball burning in the ocean?
Are there 99 percentiles, or 100 percentiles? And are they groups of numbers, or dividers or pointers to individual numbers?
Proving the order of quaternion group is 8
Does immunity to fear prevent a mummy's Dreadful Glare from paralyzing a character?
When to use the gestalt principle of common region?
Why do we need the coupling small when doing perturbative QFT calculation?
Find number 8 with the least number of tries
How (and if) to include name change for transgender person in genealogy?
Word for 'most late'
Code Golf Measurer © 2019
How can I communicate feelings to players without impacting their agency?
Milk instead of water in bread
Encountering former, abusive advisor at a conference
Can a Pokemon that I tried to capture from field research run away?
Advisor asked for my entire slide presentation so she could give the presentation at an international conference
Is the tap water in France safe to drink?
How are Aircraft Noses Designed?
Can Chandra, Acolyte of Flame cast Heartfire without the additional cost?
How to treat unhandled exceptions? (Terminate the application vs. Keep it alive)
How can I learn to write better questions to test for conceptual understanding?
What is the gold linker?
Why is Trump releasing or not of his taxes such a big deal?
Why do Computer Science degrees contain a high proportion of mathematics?
Interaction between casting spells and the Attack action
Is it possible for bash to recognize hardlinks or symlinks in $PATH?
How to have multiple path separators in Bashbash doesn't use all directories from $PATH to search for executablebin/bash: ruby command not found. Ruby not in sudo pathcrontab xinput returns empty resultsMy PATH variable resets itself when closing terminalMy $PATH variable is messed up. How to change it back?Can I create a symlink to a Windows executable in the Windows Subsystem for Linux (WSL) PATH?Stata installation: how to add stata to the .profile PATH?
.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty
margin-bottom:0;
Terminal, WSL
For example, I currently have GHC's executable in ~/bin/ghc/bin/ghc, but my $PATH only specifies /home/user/bin. I have tried running ln ~/bin/ghc/bin/ghc ~/bin/ghc-usr, but bash still doesn't recognize it.
EDIT: I have run ln with sudo.
bash symbolic-link paths
|
show 2 more comments
Terminal, WSL
For example, I currently have GHC's executable in ~/bin/ghc/bin/ghc, but my $PATH only specifies /home/user/bin. I have tried running ln ~/bin/ghc/bin/ghc ~/bin/ghc-usr, but bash still doesn't recognize it.
EDIT: I have run ln with sudo.
bash symbolic-link paths
did you close and open the terminal?
– George Udosen
May 13 at 17:50
The search is not recursive, so regardless of whether the directory is symlinked or not, if the executables are inside a subdirectoryghc-usr, then you will need to add~/bin/ghc-usr(rather than just~/bin) toPATH
– steeldriver
May 13 at 18:12
I fixed a typo. Also, yes, I reopened the terminal.
– schuelermine
May 13 at 18:16
Why didn't you runlnas regular user instead of withsudo?
– karel
May 13 at 18:26
Because the folder was protected, apparently
– schuelermine
May 13 at 18:56
|
show 2 more comments
Terminal, WSL
For example, I currently have GHC's executable in ~/bin/ghc/bin/ghc, but my $PATH only specifies /home/user/bin. I have tried running ln ~/bin/ghc/bin/ghc ~/bin/ghc-usr, but bash still doesn't recognize it.
EDIT: I have run ln with sudo.
bash symbolic-link paths
Terminal, WSL
For example, I currently have GHC's executable in ~/bin/ghc/bin/ghc, but my $PATH only specifies /home/user/bin. I have tried running ln ~/bin/ghc/bin/ghc ~/bin/ghc-usr, but bash still doesn't recognize it.
EDIT: I have run ln with sudo.
bash symbolic-link paths
bash symbolic-link paths
edited May 13 at 18:15
schuelermine
asked May 13 at 17:36
schuelermineschuelermine
1355 bronze badges
1355 bronze badges
did you close and open the terminal?
– George Udosen
May 13 at 17:50
The search is not recursive, so regardless of whether the directory is symlinked or not, if the executables are inside a subdirectoryghc-usr, then you will need to add~/bin/ghc-usr(rather than just~/bin) toPATH
– steeldriver
May 13 at 18:12
I fixed a typo. Also, yes, I reopened the terminal.
– schuelermine
May 13 at 18:16
Why didn't you runlnas regular user instead of withsudo?
– karel
May 13 at 18:26
Because the folder was protected, apparently
– schuelermine
May 13 at 18:56
|
show 2 more comments
did you close and open the terminal?
– George Udosen
May 13 at 17:50
The search is not recursive, so regardless of whether the directory is symlinked or not, if the executables are inside a subdirectoryghc-usr, then you will need to add~/bin/ghc-usr(rather than just~/bin) toPATH
– steeldriver
May 13 at 18:12
I fixed a typo. Also, yes, I reopened the terminal.
– schuelermine
May 13 at 18:16
Why didn't you runlnas regular user instead of withsudo?
– karel
May 13 at 18:26
Because the folder was protected, apparently
– schuelermine
May 13 at 18:56
did you close and open the terminal?
– George Udosen
May 13 at 17:50
did you close and open the terminal?
– George Udosen
May 13 at 17:50
The search is not recursive, so regardless of whether the directory is symlinked or not, if the executables are inside a subdirectory
ghc-usr, then you will need to add ~/bin/ghc-usr (rather than just ~/bin) to PATH– steeldriver
May 13 at 18:12
The search is not recursive, so regardless of whether the directory is symlinked or not, if the executables are inside a subdirectory
ghc-usr, then you will need to add ~/bin/ghc-usr (rather than just ~/bin) to PATH– steeldriver
May 13 at 18:12
I fixed a typo. Also, yes, I reopened the terminal.
– schuelermine
May 13 at 18:16
I fixed a typo. Also, yes, I reopened the terminal.
– schuelermine
May 13 at 18:16
Why didn't you run
ln as regular user instead of with sudo?– karel
May 13 at 18:26
Why didn't you run
ln as regular user instead of with sudo?– karel
May 13 at 18:26
Because the folder was protected, apparently
– schuelermine
May 13 at 18:56
Because the folder was protected, apparently
– schuelermine
May 13 at 18:56
|
show 2 more comments
0
active
oldest
votes
Your Answer
StackExchange.ready(function()
var channelOptions =
tags: "".split(" "),
id: "89"
;
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function()
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled)
StackExchange.using("snippets", function()
createEditor();
);
else
createEditor();
);
function createEditor()
StackExchange.prepareEditor(
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader:
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/4.0/"u003ecc by-sa 4.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
,
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
);
);
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f1142932%2fis-it-possible-for-bash-to-recognize-hardlinks-or-symlinks-in-path%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
0
active
oldest
votes
0
active
oldest
votes
active
oldest
votes
active
oldest
votes
Thanks for contributing an answer to Ask Ubuntu!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f1142932%2fis-it-possible-for-bash-to-recognize-hardlinks-or-symlinks-in-path%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
did you close and open the terminal?
– George Udosen
May 13 at 17:50
The search is not recursive, so regardless of whether the directory is symlinked or not, if the executables are inside a subdirectory
ghc-usr, then you will need to add~/bin/ghc-usr(rather than just~/bin) toPATH– steeldriver
May 13 at 18:12
I fixed a typo. Also, yes, I reopened the terminal.
– schuelermine
May 13 at 18:16
Why didn't you run
lnas regular user instead of withsudo?– karel
May 13 at 18:26
Because the folder was protected, apparently
– schuelermine
May 13 at 18:56