Adding 'soft link' to julia
I would like to be able to open the software "Julia" by simply typing julia
in a terminal at any location (like I can do for, say, firefox
). Currently, I have to type
cd ~/julia
./julia
According to the documentation I must:
Add a soft link to the julia executable in the julia directory to /usr/local/bin
(or any suitable directory already in your path).
I don't fully understand softlinks, but I can't figure out why this doesn't work:
ln -s ~/julia /usr/local/bin
Why won't this allow me to access the contents of the ~/julia
file (including the julia executable) directly?
bash
add a comment |
I would like to be able to open the software "Julia" by simply typing julia
in a terminal at any location (like I can do for, say, firefox
). Currently, I have to type
cd ~/julia
./julia
According to the documentation I must:
Add a soft link to the julia executable in the julia directory to /usr/local/bin
(or any suitable directory already in your path).
I don't fully understand softlinks, but I can't figure out why this doesn't work:
ln -s ~/julia /usr/local/bin
Why won't this allow me to access the contents of the ~/julia
file (including the julia executable) directly?
bash
1
You had created a softlink for Julia directory inside /usr/local/bin,try to create a softlink for Julia executable file inside /usr/local/bin.
– Avinash Raj
Feb 15 '14 at 8:42
1
ln -s /home/$USER/julia/julia /usr/local/bin
– Avinash Raj
Feb 15 '14 at 8:46
OK, now I understand - I thought a softlink would include all the contents of the linked directory in my search, but instead it works more like a Microsoft 'shortcut' to create a 'copy' of the file or program in another place, which of course isn't a real copy but instead links back to the original and runs it. Thanks!
– Thomas Moore
Feb 16 '14 at 12:19
add a comment |
I would like to be able to open the software "Julia" by simply typing julia
in a terminal at any location (like I can do for, say, firefox
). Currently, I have to type
cd ~/julia
./julia
According to the documentation I must:
Add a soft link to the julia executable in the julia directory to /usr/local/bin
(or any suitable directory already in your path).
I don't fully understand softlinks, but I can't figure out why this doesn't work:
ln -s ~/julia /usr/local/bin
Why won't this allow me to access the contents of the ~/julia
file (including the julia executable) directly?
bash
I would like to be able to open the software "Julia" by simply typing julia
in a terminal at any location (like I can do for, say, firefox
). Currently, I have to type
cd ~/julia
./julia
According to the documentation I must:
Add a soft link to the julia executable in the julia directory to /usr/local/bin
(or any suitable directory already in your path).
I don't fully understand softlinks, but I can't figure out why this doesn't work:
ln -s ~/julia /usr/local/bin
Why won't this allow me to access the contents of the ~/julia
file (including the julia executable) directly?
bash
bash
edited Jan 2 at 20:50
Seanny123
191213
191213
asked Feb 15 '14 at 8:34
Thomas MooreThomas Moore
130115
130115
1
You had created a softlink for Julia directory inside /usr/local/bin,try to create a softlink for Julia executable file inside /usr/local/bin.
– Avinash Raj
Feb 15 '14 at 8:42
1
ln -s /home/$USER/julia/julia /usr/local/bin
– Avinash Raj
Feb 15 '14 at 8:46
OK, now I understand - I thought a softlink would include all the contents of the linked directory in my search, but instead it works more like a Microsoft 'shortcut' to create a 'copy' of the file or program in another place, which of course isn't a real copy but instead links back to the original and runs it. Thanks!
– Thomas Moore
Feb 16 '14 at 12:19
add a comment |
1
You had created a softlink for Julia directory inside /usr/local/bin,try to create a softlink for Julia executable file inside /usr/local/bin.
– Avinash Raj
Feb 15 '14 at 8:42
1
ln -s /home/$USER/julia/julia /usr/local/bin
– Avinash Raj
Feb 15 '14 at 8:46
OK, now I understand - I thought a softlink would include all the contents of the linked directory in my search, but instead it works more like a Microsoft 'shortcut' to create a 'copy' of the file or program in another place, which of course isn't a real copy but instead links back to the original and runs it. Thanks!
– Thomas Moore
Feb 16 '14 at 12:19
1
1
You had created a softlink for Julia directory inside /usr/local/bin,try to create a softlink for Julia executable file inside /usr/local/bin.
– Avinash Raj
Feb 15 '14 at 8:42
You had created a softlink for Julia directory inside /usr/local/bin,try to create a softlink for Julia executable file inside /usr/local/bin.
– Avinash Raj
Feb 15 '14 at 8:42
1
1
ln -s /home/$USER/julia/julia /usr/local/bin
– Avinash Raj
Feb 15 '14 at 8:46
ln -s /home/$USER/julia/julia /usr/local/bin
– Avinash Raj
Feb 15 '14 at 8:46
OK, now I understand - I thought a softlink would include all the contents of the linked directory in my search, but instead it works more like a Microsoft 'shortcut' to create a 'copy' of the file or program in another place, which of course isn't a real copy but instead links back to the original and runs it. Thanks!
– Thomas Moore
Feb 16 '14 at 12:19
OK, now I understand - I thought a softlink would include all the contents of the linked directory in my search, but instead it works more like a Microsoft 'shortcut' to create a 'copy' of the file or program in another place, which of course isn't a real copy but instead links back to the original and runs it. Thanks!
– Thomas Moore
Feb 16 '14 at 12:19
add a comment |
2 Answers
2
active
oldest
votes
I assume the executable julia
is under ~/julia/
folder. Use the following command in terminal to make a softlink in /usr/local/bin
,
sudo ln -s /home/<username>/julia/julia /usr/local/bin
Replace <username>
with your actual username. Or,
sudo ln -s "$HOME"/julia/julia /usr/local/bin
Note: you need to use sudo
to access /usr/local/bin
as it is system directory.
Alternate User level Method (if you do not have root access)
You can create a folder $HOME/bin
and put it in path, use the following commands in terminal,
cd
mkdir bin
echo "export PATH=$HOME/bin:$PATH" >> ~/.bashrc
. ~/.bashrc
Now create a softlink in $HOME/bin
as,
ln -s "$HOME"/julia/julia "$HOME"/bin
add a comment |
You can also just right click on the Julia file and navigate to Make Link then copy the newly created link to anywhere on your home directory.
add a comment |
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/3.0/"u003ecc by-sa 3.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%2f421150%2fadding-soft-link-to-julia%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
2 Answers
2
active
oldest
votes
2 Answers
2
active
oldest
votes
active
oldest
votes
active
oldest
votes
I assume the executable julia
is under ~/julia/
folder. Use the following command in terminal to make a softlink in /usr/local/bin
,
sudo ln -s /home/<username>/julia/julia /usr/local/bin
Replace <username>
with your actual username. Or,
sudo ln -s "$HOME"/julia/julia /usr/local/bin
Note: you need to use sudo
to access /usr/local/bin
as it is system directory.
Alternate User level Method (if you do not have root access)
You can create a folder $HOME/bin
and put it in path, use the following commands in terminal,
cd
mkdir bin
echo "export PATH=$HOME/bin:$PATH" >> ~/.bashrc
. ~/.bashrc
Now create a softlink in $HOME/bin
as,
ln -s "$HOME"/julia/julia "$HOME"/bin
add a comment |
I assume the executable julia
is under ~/julia/
folder. Use the following command in terminal to make a softlink in /usr/local/bin
,
sudo ln -s /home/<username>/julia/julia /usr/local/bin
Replace <username>
with your actual username. Or,
sudo ln -s "$HOME"/julia/julia /usr/local/bin
Note: you need to use sudo
to access /usr/local/bin
as it is system directory.
Alternate User level Method (if you do not have root access)
You can create a folder $HOME/bin
and put it in path, use the following commands in terminal,
cd
mkdir bin
echo "export PATH=$HOME/bin:$PATH" >> ~/.bashrc
. ~/.bashrc
Now create a softlink in $HOME/bin
as,
ln -s "$HOME"/julia/julia "$HOME"/bin
add a comment |
I assume the executable julia
is under ~/julia/
folder. Use the following command in terminal to make a softlink in /usr/local/bin
,
sudo ln -s /home/<username>/julia/julia /usr/local/bin
Replace <username>
with your actual username. Or,
sudo ln -s "$HOME"/julia/julia /usr/local/bin
Note: you need to use sudo
to access /usr/local/bin
as it is system directory.
Alternate User level Method (if you do not have root access)
You can create a folder $HOME/bin
and put it in path, use the following commands in terminal,
cd
mkdir bin
echo "export PATH=$HOME/bin:$PATH" >> ~/.bashrc
. ~/.bashrc
Now create a softlink in $HOME/bin
as,
ln -s "$HOME"/julia/julia "$HOME"/bin
I assume the executable julia
is under ~/julia/
folder. Use the following command in terminal to make a softlink in /usr/local/bin
,
sudo ln -s /home/<username>/julia/julia /usr/local/bin
Replace <username>
with your actual username. Or,
sudo ln -s "$HOME"/julia/julia /usr/local/bin
Note: you need to use sudo
to access /usr/local/bin
as it is system directory.
Alternate User level Method (if you do not have root access)
You can create a folder $HOME/bin
and put it in path, use the following commands in terminal,
cd
mkdir bin
echo "export PATH=$HOME/bin:$PATH" >> ~/.bashrc
. ~/.bashrc
Now create a softlink in $HOME/bin
as,
ln -s "$HOME"/julia/julia "$HOME"/bin
edited Feb 15 '14 at 9:26
answered Feb 15 '14 at 8:42
souravcsouravc
26.7k1375105
26.7k1375105
add a comment |
add a comment |
You can also just right click on the Julia file and navigate to Make Link then copy the newly created link to anywhere on your home directory.
add a comment |
You can also just right click on the Julia file and navigate to Make Link then copy the newly created link to anywhere on your home directory.
add a comment |
You can also just right click on the Julia file and navigate to Make Link then copy the newly created link to anywhere on your home directory.
You can also just right click on the Julia file and navigate to Make Link then copy the newly created link to anywhere on your home directory.
answered Feb 15 '14 at 9:47
Olu SmithOlu Smith
92568
92568
add a comment |
add a comment |
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%2f421150%2fadding-soft-link-to-julia%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
1
You had created a softlink for Julia directory inside /usr/local/bin,try to create a softlink for Julia executable file inside /usr/local/bin.
– Avinash Raj
Feb 15 '14 at 8:42
1
ln -s /home/$USER/julia/julia /usr/local/bin
– Avinash Raj
Feb 15 '14 at 8:46
OK, now I understand - I thought a softlink would include all the contents of the linked directory in my search, but instead it works more like a Microsoft 'shortcut' to create a 'copy' of the file or program in another place, which of course isn't a real copy but instead links back to the original and runs it. Thanks!
– Thomas Moore
Feb 16 '14 at 12:19