{"id":463,"date":"2020-11-24T03:20:00","date_gmt":"2020-11-24T08:20:00","guid":{"rendered":"https:\/\/molecularsciences.org\/content\/?p=463"},"modified":"2020-12-31T22:57:00","modified_gmt":"2021-01-01T03:57:00","slug":"linux-symbolic-links","status":"publish","type":"post","link":"https:\/\/molecularsciences.org\/content\/linux-symbolic-links\/","title":{"rendered":"Linux symbolic links"},"content":{"rendered":"\n<p>A symbolic link is a link which points to another file. In Microsoft windows, this is referred to as a shortcut and in Macintosh, an alias. To create a symbolic link:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>$ ln -s source_file symbolic_link\n$ ln -s readme.txt pointer-to-readme.txt<\/code><\/pre>\n\n\n\n<p>Now if you do:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>$ cat readme.txt\n$ cat pointer-to-readme.txt<\/code><\/pre>\n\n\n\n<p>Both commands would print the contents of the same file, readme.txt.<\/p>\n\n\n\n<p>If you delete the symbolic link, the original file would remain intact. However, if you delete or move the original file, the symbolic link would not function properly.<\/p>\n\n\n\n<p>To find out more about symbolic links, read the man pages for the ln command:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>$ man ln<\/code><\/pre>\n","protected":false},"excerpt":{"rendered":"<p>A symbolic link is a link which points to another file. In Microsoft windows, this is referred to as a shortcut and in Macintosh, an alias. To create a symbolic link: Now if you do: Both commands would print the contents of the same file, readme.txt. If you delete the symbolic link, the original file [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":487,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[34],"tags":[35],"class_list":["post-463","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-linux","tag-linux"],"_links":{"self":[{"href":"https:\/\/molecularsciences.org\/content\/wp-json\/wp\/v2\/posts\/463","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/molecularsciences.org\/content\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/molecularsciences.org\/content\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/molecularsciences.org\/content\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/molecularsciences.org\/content\/wp-json\/wp\/v2\/comments?post=463"}],"version-history":[{"count":1,"href":"https:\/\/molecularsciences.org\/content\/wp-json\/wp\/v2\/posts\/463\/revisions"}],"predecessor-version":[{"id":464,"href":"https:\/\/molecularsciences.org\/content\/wp-json\/wp\/v2\/posts\/463\/revisions\/464"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/molecularsciences.org\/content\/wp-json\/wp\/v2\/media\/487"}],"wp:attachment":[{"href":"https:\/\/molecularsciences.org\/content\/wp-json\/wp\/v2\/media?parent=463"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/molecularsciences.org\/content\/wp-json\/wp\/v2\/categories?post=463"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/molecularsciences.org\/content\/wp-json\/wp\/v2\/tags?post=463"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}