Symbolic link ./././
up vote
1
down vote
favorite
So I was asked to create a link "..." like ../ but two go an extra level up in Linux. I understand that I must use ln -s to create a symbolic link.
linux directory
add a comment |
up vote
1
down vote
favorite
So I was asked to create a link "..." like ../ but two go an extra level up in Linux. I understand that I must use ln -s to create a symbolic link.
linux directory
add a comment |
up vote
1
down vote
favorite
up vote
1
down vote
favorite
So I was asked to create a link "..." like ../ but two go an extra level up in Linux. I understand that I must use ln -s to create a symbolic link.
linux directory
So I was asked to create a link "..." like ../ but two go an extra level up in Linux. I understand that I must use ln -s to create a symbolic link.
linux directory
linux directory
edited Nov 24 at 20:11
Rui F Ribeiro
38.3k1476127
38.3k1476127
asked Feb 29 '16 at 22:36
Phantom1421
3317
3317
add a comment |
add a comment |
2 Answers
2
active
oldest
votes
up vote
1
down vote
accepted
Basically you have to do the following (if I understood your question correctly):
ln -s /path/to/file /path/to/symlink
can you either repeat what you are trying to say or just edit the comment to make it more clear, for some reason (could be totally my fault, sorry for that) I am unable to grasp as to what exactly you are trying to do.
– Jay T.
Feb 29 '16 at 22:48
Ok so what I have is say I am in the directory home/zman/it200 and I am told to go back to the home directory I can use ../ but I would need to use twice so instead of doing that I have to create a symbolic link to have that do it twice for me when I call the link, hope this makes more sense?
– Phantom1421
Feb 29 '16 at 22:51
sure you can do something like:ln -s ../../ target
and then if you docd target
you will have a link to your home directory.
– Jay T.
Feb 29 '16 at 23:10
very important question, does it import everything from the home library or move to the home library. so what i mean is when i took you advice and did ln -s ../../ target and then did cd target my pwd is /it244/hw2/target , is this right?
– Phantom1421
Mar 1 '16 at 0:00
add a comment |
up vote
1
down vote
ln -s ../.. ... #target linkName
rtf ln(1) m
add a comment |
2 Answers
2
active
oldest
votes
2 Answers
2
active
oldest
votes
active
oldest
votes
active
oldest
votes
up vote
1
down vote
accepted
Basically you have to do the following (if I understood your question correctly):
ln -s /path/to/file /path/to/symlink
can you either repeat what you are trying to say or just edit the comment to make it more clear, for some reason (could be totally my fault, sorry for that) I am unable to grasp as to what exactly you are trying to do.
– Jay T.
Feb 29 '16 at 22:48
Ok so what I have is say I am in the directory home/zman/it200 and I am told to go back to the home directory I can use ../ but I would need to use twice so instead of doing that I have to create a symbolic link to have that do it twice for me when I call the link, hope this makes more sense?
– Phantom1421
Feb 29 '16 at 22:51
sure you can do something like:ln -s ../../ target
and then if you docd target
you will have a link to your home directory.
– Jay T.
Feb 29 '16 at 23:10
very important question, does it import everything from the home library or move to the home library. so what i mean is when i took you advice and did ln -s ../../ target and then did cd target my pwd is /it244/hw2/target , is this right?
– Phantom1421
Mar 1 '16 at 0:00
add a comment |
up vote
1
down vote
accepted
Basically you have to do the following (if I understood your question correctly):
ln -s /path/to/file /path/to/symlink
can you either repeat what you are trying to say or just edit the comment to make it more clear, for some reason (could be totally my fault, sorry for that) I am unable to grasp as to what exactly you are trying to do.
– Jay T.
Feb 29 '16 at 22:48
Ok so what I have is say I am in the directory home/zman/it200 and I am told to go back to the home directory I can use ../ but I would need to use twice so instead of doing that I have to create a symbolic link to have that do it twice for me when I call the link, hope this makes more sense?
– Phantom1421
Feb 29 '16 at 22:51
sure you can do something like:ln -s ../../ target
and then if you docd target
you will have a link to your home directory.
– Jay T.
Feb 29 '16 at 23:10
very important question, does it import everything from the home library or move to the home library. so what i mean is when i took you advice and did ln -s ../../ target and then did cd target my pwd is /it244/hw2/target , is this right?
– Phantom1421
Mar 1 '16 at 0:00
add a comment |
up vote
1
down vote
accepted
up vote
1
down vote
accepted
Basically you have to do the following (if I understood your question correctly):
ln -s /path/to/file /path/to/symlink
Basically you have to do the following (if I understood your question correctly):
ln -s /path/to/file /path/to/symlink
answered Feb 29 '16 at 22:40
Jay T.
564
564
can you either repeat what you are trying to say or just edit the comment to make it more clear, for some reason (could be totally my fault, sorry for that) I am unable to grasp as to what exactly you are trying to do.
– Jay T.
Feb 29 '16 at 22:48
Ok so what I have is say I am in the directory home/zman/it200 and I am told to go back to the home directory I can use ../ but I would need to use twice so instead of doing that I have to create a symbolic link to have that do it twice for me when I call the link, hope this makes more sense?
– Phantom1421
Feb 29 '16 at 22:51
sure you can do something like:ln -s ../../ target
and then if you docd target
you will have a link to your home directory.
– Jay T.
Feb 29 '16 at 23:10
very important question, does it import everything from the home library or move to the home library. so what i mean is when i took you advice and did ln -s ../../ target and then did cd target my pwd is /it244/hw2/target , is this right?
– Phantom1421
Mar 1 '16 at 0:00
add a comment |
can you either repeat what you are trying to say or just edit the comment to make it more clear, for some reason (could be totally my fault, sorry for that) I am unable to grasp as to what exactly you are trying to do.
– Jay T.
Feb 29 '16 at 22:48
Ok so what I have is say I am in the directory home/zman/it200 and I am told to go back to the home directory I can use ../ but I would need to use twice so instead of doing that I have to create a symbolic link to have that do it twice for me when I call the link, hope this makes more sense?
– Phantom1421
Feb 29 '16 at 22:51
sure you can do something like:ln -s ../../ target
and then if you docd target
you will have a link to your home directory.
– Jay T.
Feb 29 '16 at 23:10
very important question, does it import everything from the home library or move to the home library. so what i mean is when i took you advice and did ln -s ../../ target and then did cd target my pwd is /it244/hw2/target , is this right?
– Phantom1421
Mar 1 '16 at 0:00
can you either repeat what you are trying to say or just edit the comment to make it more clear, for some reason (could be totally my fault, sorry for that) I am unable to grasp as to what exactly you are trying to do.
– Jay T.
Feb 29 '16 at 22:48
can you either repeat what you are trying to say or just edit the comment to make it more clear, for some reason (could be totally my fault, sorry for that) I am unable to grasp as to what exactly you are trying to do.
– Jay T.
Feb 29 '16 at 22:48
Ok so what I have is say I am in the directory home/zman/it200 and I am told to go back to the home directory I can use ../ but I would need to use twice so instead of doing that I have to create a symbolic link to have that do it twice for me when I call the link, hope this makes more sense?
– Phantom1421
Feb 29 '16 at 22:51
Ok so what I have is say I am in the directory home/zman/it200 and I am told to go back to the home directory I can use ../ but I would need to use twice so instead of doing that I have to create a symbolic link to have that do it twice for me when I call the link, hope this makes more sense?
– Phantom1421
Feb 29 '16 at 22:51
sure you can do something like:
ln -s ../../ target
and then if you do cd target
you will have a link to your home directory.– Jay T.
Feb 29 '16 at 23:10
sure you can do something like:
ln -s ../../ target
and then if you do cd target
you will have a link to your home directory.– Jay T.
Feb 29 '16 at 23:10
very important question, does it import everything from the home library or move to the home library. so what i mean is when i took you advice and did ln -s ../../ target and then did cd target my pwd is /it244/hw2/target , is this right?
– Phantom1421
Mar 1 '16 at 0:00
very important question, does it import everything from the home library or move to the home library. so what i mean is when i took you advice and did ln -s ../../ target and then did cd target my pwd is /it244/hw2/target , is this right?
– Phantom1421
Mar 1 '16 at 0:00
add a comment |
up vote
1
down vote
ln -s ../.. ... #target linkName
rtf ln(1) m
add a comment |
up vote
1
down vote
ln -s ../.. ... #target linkName
rtf ln(1) m
add a comment |
up vote
1
down vote
up vote
1
down vote
ln -s ../.. ... #target linkName
rtf ln(1) m
ln -s ../.. ... #target linkName
rtf ln(1) m
answered Feb 29 '16 at 22:41
PSkocik
17.5k44993
17.5k44993
add a comment |
add a comment |
Thanks for contributing an answer to Unix & Linux Stack Exchange!
- 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.
Some of your past answers have not been well-received, and you're in danger of being blocked from answering.
Please pay close attention to the following guidance:
- 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%2funix.stackexchange.com%2fquestions%2f266624%2fsymbolic-link%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