What are the most dangerous situations a newb should know to avoid concerning sym and hard links?
Originally this post was titled poorly and asked the question, "How can you make a shortcut like in Windows that isn't going to potentially be accidentally deleted, like if you didn't know you were deleting your original file and not your symlink.
I sort of found that you can verify that just by using an ls -l
to verify that the the file is marked with and l
and not a d
or an -
...
So in the spirit of having a useful question, I've changed it to ask, what horrible complications can arise as a result poor use of symlinks and hardlinks?
symlink hard-link links
New contributor
add a comment |
Originally this post was titled poorly and asked the question, "How can you make a shortcut like in Windows that isn't going to potentially be accidentally deleted, like if you didn't know you were deleting your original file and not your symlink.
I sort of found that you can verify that just by using an ls -l
to verify that the the file is marked with and l
and not a d
or an -
...
So in the spirit of having a useful question, I've changed it to ask, what horrible complications can arise as a result poor use of symlinks and hardlinks?
symlink hard-link links
New contributor
(1) Have you ever read a book whose title was “It was a Dark and”, and then page 1 began “stormy night”? Of course not. Please use the title box for a title for your question, not just the first line of the question body. (2) It sounds like you are talking about symbolic links. What “complications” and “trickiness” are you talking about?
– G-Man
2 hours ago
Can't really read your language, my English is not good enough. Do you want.desktop
files as described in XDG standard? specifications.freedesktop.org/desktop-entry-spec/latest
– 炸鱼薯条德里克
2 hours ago
@G-Man (1) I was having trouble fitting the whole thought into one sentence appropriate for the header title space. That said, I understand that there is a method around here that is expected and all I can say is thanks for letting me know. I'm very new to this. I'll improve. (2) I was made to think that it was fairly easy as a newb to confuse which file is the symlink and which is the original, and if you accidentally delete the wrong one, that you lose them both. After some reading, I think you just have to run a ls -l and make sure you delete thel
file, not the-
ord
labeled file.
– Rulent
13 mins ago
@炸鱼薯条德里克 I am not yet familiar with the document that you just shared, but... either way, I think it is something I should read. Thank you, but I believe the sym link works for my purposes after all. I believe the question is answered without an answer.
– Rulent
9 mins ago
changed the question to be more appropriate
– Rulent
2 mins ago
add a comment |
Originally this post was titled poorly and asked the question, "How can you make a shortcut like in Windows that isn't going to potentially be accidentally deleted, like if you didn't know you were deleting your original file and not your symlink.
I sort of found that you can verify that just by using an ls -l
to verify that the the file is marked with and l
and not a d
or an -
...
So in the spirit of having a useful question, I've changed it to ask, what horrible complications can arise as a result poor use of symlinks and hardlinks?
symlink hard-link links
New contributor
Originally this post was titled poorly and asked the question, "How can you make a shortcut like in Windows that isn't going to potentially be accidentally deleted, like if you didn't know you were deleting your original file and not your symlink.
I sort of found that you can verify that just by using an ls -l
to verify that the the file is marked with and l
and not a d
or an -
...
So in the spirit of having a useful question, I've changed it to ask, what horrible complications can arise as a result poor use of symlinks and hardlinks?
symlink hard-link links
symlink hard-link links
New contributor
New contributor
edited 2 mins ago
Rulent
New contributor
asked 2 hours ago
RulentRulent
113
113
New contributor
New contributor
(1) Have you ever read a book whose title was “It was a Dark and”, and then page 1 began “stormy night”? Of course not. Please use the title box for a title for your question, not just the first line of the question body. (2) It sounds like you are talking about symbolic links. What “complications” and “trickiness” are you talking about?
– G-Man
2 hours ago
Can't really read your language, my English is not good enough. Do you want.desktop
files as described in XDG standard? specifications.freedesktop.org/desktop-entry-spec/latest
– 炸鱼薯条德里克
2 hours ago
@G-Man (1) I was having trouble fitting the whole thought into one sentence appropriate for the header title space. That said, I understand that there is a method around here that is expected and all I can say is thanks for letting me know. I'm very new to this. I'll improve. (2) I was made to think that it was fairly easy as a newb to confuse which file is the symlink and which is the original, and if you accidentally delete the wrong one, that you lose them both. After some reading, I think you just have to run a ls -l and make sure you delete thel
file, not the-
ord
labeled file.
– Rulent
13 mins ago
@炸鱼薯条德里克 I am not yet familiar with the document that you just shared, but... either way, I think it is something I should read. Thank you, but I believe the sym link works for my purposes after all. I believe the question is answered without an answer.
– Rulent
9 mins ago
changed the question to be more appropriate
– Rulent
2 mins ago
add a comment |
(1) Have you ever read a book whose title was “It was a Dark and”, and then page 1 began “stormy night”? Of course not. Please use the title box for a title for your question, not just the first line of the question body. (2) It sounds like you are talking about symbolic links. What “complications” and “trickiness” are you talking about?
– G-Man
2 hours ago
Can't really read your language, my English is not good enough. Do you want.desktop
files as described in XDG standard? specifications.freedesktop.org/desktop-entry-spec/latest
– 炸鱼薯条德里克
2 hours ago
@G-Man (1) I was having trouble fitting the whole thought into one sentence appropriate for the header title space. That said, I understand that there is a method around here that is expected and all I can say is thanks for letting me know. I'm very new to this. I'll improve. (2) I was made to think that it was fairly easy as a newb to confuse which file is the symlink and which is the original, and if you accidentally delete the wrong one, that you lose them both. After some reading, I think you just have to run a ls -l and make sure you delete thel
file, not the-
ord
labeled file.
– Rulent
13 mins ago
@炸鱼薯条德里克 I am not yet familiar with the document that you just shared, but... either way, I think it is something I should read. Thank you, but I believe the sym link works for my purposes after all. I believe the question is answered without an answer.
– Rulent
9 mins ago
changed the question to be more appropriate
– Rulent
2 mins ago
(1) Have you ever read a book whose title was “It was a Dark and”, and then page 1 began “stormy night”? Of course not. Please use the title box for a title for your question, not just the first line of the question body. (2) It sounds like you are talking about symbolic links. What “complications” and “trickiness” are you talking about?
– G-Man
2 hours ago
(1) Have you ever read a book whose title was “It was a Dark and”, and then page 1 began “stormy night”? Of course not. Please use the title box for a title for your question, not just the first line of the question body. (2) It sounds like you are talking about symbolic links. What “complications” and “trickiness” are you talking about?
– G-Man
2 hours ago
Can't really read your language, my English is not good enough. Do you want
.desktop
files as described in XDG standard? specifications.freedesktop.org/desktop-entry-spec/latest– 炸鱼薯条德里克
2 hours ago
Can't really read your language, my English is not good enough. Do you want
.desktop
files as described in XDG standard? specifications.freedesktop.org/desktop-entry-spec/latest– 炸鱼薯条德里克
2 hours ago
@G-Man (1) I was having trouble fitting the whole thought into one sentence appropriate for the header title space. That said, I understand that there is a method around here that is expected and all I can say is thanks for letting me know. I'm very new to this. I'll improve. (2) I was made to think that it was fairly easy as a newb to confuse which file is the symlink and which is the original, and if you accidentally delete the wrong one, that you lose them both. After some reading, I think you just have to run a ls -l and make sure you delete the
l
file, not the -
or d
labeled file.– Rulent
13 mins ago
@G-Man (1) I was having trouble fitting the whole thought into one sentence appropriate for the header title space. That said, I understand that there is a method around here that is expected and all I can say is thanks for letting me know. I'm very new to this. I'll improve. (2) I was made to think that it was fairly easy as a newb to confuse which file is the symlink and which is the original, and if you accidentally delete the wrong one, that you lose them both. After some reading, I think you just have to run a ls -l and make sure you delete the
l
file, not the -
or d
labeled file.– Rulent
13 mins ago
@炸鱼薯条德里克 I am not yet familiar with the document that you just shared, but... either way, I think it is something I should read. Thank you, but I believe the sym link works for my purposes after all. I believe the question is answered without an answer.
– Rulent
9 mins ago
@炸鱼薯条德里克 I am not yet familiar with the document that you just shared, but... either way, I think it is something I should read. Thank you, but I believe the sym link works for my purposes after all. I believe the question is answered without an answer.
– Rulent
9 mins ago
changed the question to be more appropriate
– Rulent
2 mins ago
changed the question to be more appropriate
– Rulent
2 mins ago
add a comment |
0
active
oldest
votes
Your Answer
StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "106"
};
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: false,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: null,
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
});
}
});
Rulent is a new contributor. Be nice, and check out our Code of Conduct.
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%2f493119%2fwhat-are-the-most-dangerous-situations-a-newb-should-know-to-avoid-concerning-sy%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
Rulent is a new contributor. Be nice, and check out our Code of Conduct.
Rulent is a new contributor. Be nice, and check out our Code of Conduct.
Rulent is a new contributor. Be nice, and check out our Code of Conduct.
Rulent is a new contributor. Be nice, and check out our Code of Conduct.
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%2f493119%2fwhat-are-the-most-dangerous-situations-a-newb-should-know-to-avoid-concerning-sy%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) Have you ever read a book whose title was “It was a Dark and”, and then page 1 began “stormy night”? Of course not. Please use the title box for a title for your question, not just the first line of the question body. (2) It sounds like you are talking about symbolic links. What “complications” and “trickiness” are you talking about?
– G-Man
2 hours ago
Can't really read your language, my English is not good enough. Do you want
.desktop
files as described in XDG standard? specifications.freedesktop.org/desktop-entry-spec/latest– 炸鱼薯条德里克
2 hours ago
@G-Man (1) I was having trouble fitting the whole thought into one sentence appropriate for the header title space. That said, I understand that there is a method around here that is expected and all I can say is thanks for letting me know. I'm very new to this. I'll improve. (2) I was made to think that it was fairly easy as a newb to confuse which file is the symlink and which is the original, and if you accidentally delete the wrong one, that you lose them both. After some reading, I think you just have to run a ls -l and make sure you delete the
l
file, not the-
ord
labeled file.– Rulent
13 mins ago
@炸鱼薯条德里克 I am not yet familiar with the document that you just shared, but... either way, I think it is something I should read. Thank you, but I believe the sym link works for my purposes after all. I believe the question is answered without an answer.
– Rulent
9 mins ago
changed the question to be more appropriate
– Rulent
2 mins ago