What are the most dangerous situations a newb should know to avoid concerning sym and hard links?












1














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?










share|improve this question









New contributor




Rulent is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.




















  • (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 - 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










  • changed the question to be more appropriate
    – Rulent
    2 mins ago
















1














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?










share|improve this question









New contributor




Rulent is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.




















  • (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 - 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










  • changed the question to be more appropriate
    – Rulent
    2 mins ago














1












1








1







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?










share|improve this question









New contributor




Rulent is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.











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






share|improve this question









New contributor




Rulent is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.











share|improve this question









New contributor




Rulent is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.









share|improve this question




share|improve this question








edited 2 mins ago







Rulent













New contributor




Rulent is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.









asked 2 hours ago









RulentRulent

113




113




New contributor




Rulent is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.





New contributor





Rulent is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.






Rulent is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.












  • (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 - 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










  • 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










  • 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










  • @炸鱼薯条德里克 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










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.










draft saved

draft discarded


















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.










draft saved

draft discarded


















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.




draft saved


draft discarded














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





















































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







Popular posts from this blog

CARDNET

Boot-repair Failure: Unable to locate package grub-common:i386

濃尾地震