{"id":800,"date":"2019-02-28T14:18:46","date_gmt":"2019-02-28T20:18:46","guid":{"rendered":"https:\/\/linuxhostsupport.com\/blog\/?p=800"},"modified":"2019-02-28T14:18:46","modified_gmt":"2019-02-28T20:18:46","slug":"using-hard-and-symbolic-links-in-linux","status":"publish","type":"post","link":"https:\/\/linuxhostsupport.com\/blog\/using-hard-and-symbolic-links-in-linux\/","title":{"rendered":"Using Hard and Symbolic Links in Linux"},"content":{"rendered":"<div id=\"linux-1484287632\" class=\"linux-before-1st-paragraph linux-entity-placement\" style=\"margin-top: 15px;margin-bottom: 15px;\"><a href=\"https:\/\/www.rosehosting.com\/managed-vps-hosting\/?mtm_campaign=blogs&#038;mtm_source=lhs&#038;mtm_medium=blog&#038;mtm_content=managed-vps&#038;mtm_cid=1339&#038;mtm_placement=inline\" aria-label=\"Untitled\"><img src=\"https:\/\/linuxhostsupport.com\/blog\/wp-content\/uploads\/2020\/12\/1340090_NVMeGoogleAds_728x90_041322.jpg\" alt=\"\"  srcset=\"https:\/\/linuxhostsupport.com\/blog\/wp-content\/uploads\/2020\/12\/1340090_NVMeGoogleAds_728x90_041322.jpg 728w, https:\/\/linuxhostsupport.com\/blog\/wp-content\/uploads\/2020\/12\/1340090_NVMeGoogleAds_728x90_041322-300x37.jpg 300w\" sizes=\"(max-width: 728px) 100vw, 728px\" width=\"728\" height=\"90\"  style=\"display: inline-block;\" \/><\/a><\/div><p class=\"p1\"><span class=\"s1\">Back when Linux was in earlier development, it used to utilize a &#8220;flat&#8221; directory structure. This meant that unlike the hierarchical &#8220;tree-link&#8221; folders we have today, everything was located inside of a single folder. No subdirectories existed. It also meant that each file had to have a unique filename, without exceptions!<\/span><\/p>\n<p class=\"p1\"><span class=\"s1\">All of that changed when Linux baked &#8220;hard links&#8221; into its kernel. The special character sequence &#8220;..&#8221; was defined to mean the parent directory, and it&#8217;s now the backbone of the modern Linux filesystem as we know it today. With that, we can see the importance of hard links &#8211; and in this tutorial, we&#8217;ll explain the difference between symbolic links and hard links, and the use-case scenarios, as well as when to use each type of link.<\/span><\/p>\n<p><!--more--><\/p>\n<h2 class=\"p2\"><span class=\"s1\">What Are Symbolic Links?<\/span><\/h2>\n<p class=\"p1\"><span class=\"s1\">A symbolic link is a link to a specific file that gets treated by applications and programs as the file itself. It does not copy the file &#8211; it&#8217;s a pointer, pointing back to the original file instead. It doesn&#8217;t take up any extra space, and it can be moved around just like any other file.<\/span><\/p>\n<p class=\"p1\"><span class=\"s1\">It&#8217;s a convenient way to have a single file in multiple directories. Linux packages use this all the time &#8211; they commonly create symbolic links to their scripts in the global environment paths for the system. This makes it easy to execute these scripts without having to specify the full path.<\/span><\/p>\n<p class=\"p1\"><span class=\"s1\">The key concept around symbolic links is that there&#8217;s only\u00a0<i>one<\/i>\u00a0&#8220;real&#8221; copy of the file, despite it being mentioned in several locations. So if you make a change, that modification will propagate to all other symbolic links (and the original file) everywhere else.<\/span><\/p>\n<p class=\"p1\"><span class=\"s1\">We can create a symbolic link to a file by using the following syntax:<\/span><\/p>\n<pre class=\"p1\"><span class=\"s1\">ln -s <i>[originalfile]<\/i> <i>[symlinkoriginal]<\/i><\/span><\/pre>\n<p class=\"p1\"><span class=\"s1\">This can be seen in this screenshot here:<\/span><\/p>\n<figure id=\"attachment_801\" class=\"thumbnail wp-caption aligncenter\" style=\"width: 736px\"><img decoding=\"async\" class=\"size-full wp-image-801\" src=\"https:\/\/linuxhostsupport.com\/blog\/wp-content\/uploads\/2019\/02\/Create-Symbolic-Link-File.jpg\" alt=\"Create Symbolic Link to File\" width=\"726\" height=\"466\" srcset=\"https:\/\/linuxhostsupport.com\/blog\/wp-content\/uploads\/2019\/02\/Create-Symbolic-Link-File.jpg 726w, https:\/\/linuxhostsupport.com\/blog\/wp-content\/uploads\/2019\/02\/Create-Symbolic-Link-File-300x193.jpg 300w\" sizes=\"(max-width: 726px) 100vw, 726px\" \/><figcaption class=\"caption wp-caption-text\">Creating a Symbolic Link to a File<\/figcaption><\/figure>\n<p class=\"p1\"><span class=\"s1\">As you can see, the new file &#8220;symlinkoriginal&#8221; shows up with the &#8220;ls -l&#8221; command as a separate color. It also shows that it&#8217;s pointing to the first file.<\/span><\/p>\n<h2 class=\"p2\"><span class=\"s1\">Inode Counters<\/span><\/h2>\n<p class=\"p1\"><span class=\"s1\">With the &#8220;ls -l&#8221; command, look at the second column in the previous screenshot. This is the number of pointers to the data, represented by the inode number. A regular file has a single pointer to the inode. With a symlink, that number doesn&#8217;t change because the symlink is pointing to the <i>file<\/i> and not the underlying data.<\/span><\/p>\n<h2 class=\"p2\"><span class=\"s1\">Deleting the Original File With a Symbolic Link<\/span><\/h2>\n<p class=\"p1\"><span class=\"s1\">In the following screenshot, we&#8217;ll remove the original file with the symlink still pointing to it:<\/span><\/p>\n<figure id=\"attachment_802\" class=\"thumbnail wp-caption aligncenter\" style=\"width: 731px\"><img decoding=\"async\" class=\"size-full wp-image-802\" src=\"https:\/\/linuxhostsupport.com\/blog\/wp-content\/uploads\/2019\/02\/Data-Gone-if-Original-File-Removed.jpg\" alt=\"Data Gone if Original File Removed\" width=\"721\" height=\"334\" srcset=\"https:\/\/linuxhostsupport.com\/blog\/wp-content\/uploads\/2019\/02\/Data-Gone-if-Original-File-Removed.jpg 721w, https:\/\/linuxhostsupport.com\/blog\/wp-content\/uploads\/2019\/02\/Data-Gone-if-Original-File-Removed-300x139.jpg 300w\" sizes=\"(max-width: 721px) 100vw, 721px\" \/><figcaption class=\"caption wp-caption-text\">The Data is Gone if the Original File is Removed<\/figcaption><\/figure>\n<p class=\"p1\"><span class=\"s1\">As you can see here, once the original file is gone, the symbolic link no longer works. When we try to read it, the system says &#8220;No such file or directory&#8221;. And when we list the file with &#8220;ls&#8221;, it shows up in red with an arrow pointing to the deleted file.<\/span><\/p>\n<p class=\"p1\"><span class=\"s1\">This shows that symbolic links are subservient to the actual file.<\/span><\/p>\n<h2 class=\"p2\"><span class=\"s1\">What are Hard Links?<\/span><\/h2>\n<p class=\"p1\"><span class=\"s1\">A hard link,\u00a0on the other hand, points to the actual inode containing the data instead of the original file. This has all sorts of implications. Firstly, a hard link is treated <i>on an equal footing<\/i> when compared to the original file name. The operating system can&#8217;t tell the difference.<\/span><\/p>\n<p class=\"p1\"><span class=\"s1\">Secondly, when you delete the original file, the hard link&#8217;s connection to the inode remains and the data can still be accessed unlike with symbolic links. <\/span><\/p>\n<h2 class=\"p1\"><span class=\"s1\">Creating a Hard Link<\/span><\/h2>\n<p class=\"p1\"><span class=\"s1\">To create a hard link, use the following (without the &#8220;-s&#8221; option, which was used to create a symbolic link):<\/span><\/p>\n<pre class=\"p1\"><span class=\"s1\">ln <i>[originalfile]<\/i> <i>[symlinkoriginal]<\/i><\/span><\/pre>\n<p class=\"p1\"><span class=\"s1\">It should look like this:<\/span><\/p>\n<figure id=\"attachment_803\" class=\"thumbnail wp-caption aligncenter\" style=\"width: 713px\"><img decoding=\"async\" class=\"size-full wp-image-803\" src=\"https:\/\/linuxhostsupport.com\/blog\/wp-content\/uploads\/2019\/02\/Create-Hard-Link-to-File.jpg\" alt=\"Create Hard Link to File\" width=\"703\" height=\"459\" srcset=\"https:\/\/linuxhostsupport.com\/blog\/wp-content\/uploads\/2019\/02\/Create-Hard-Link-to-File.jpg 703w, https:\/\/linuxhostsupport.com\/blog\/wp-content\/uploads\/2019\/02\/Create-Hard-Link-to-File-300x196.jpg 300w\" sizes=\"(max-width: 703px) 100vw, 703px\" \/><figcaption class=\"caption wp-caption-text\">Creating a Hard Link to a File<\/figcaption><\/figure>\n<p class=\"p2\"><span class=\"s1\">This time after creating the hard link, we list the files again. Now, the hard link shows up as just a regular file, no different from any other. Also, note that the inode counter in the second column shows &#8220;2&#8221;, instead of &#8220;1&#8221;, which is unlike the symbolic link. This means that there are two pointers to the inode data &#8211; the original file, and the hard link.<\/span><\/p>\n<p class=\"p2\"><span class=\"s1\">Deleting the original file has no impact on the hard link:<\/span><\/p>\n<figure id=\"attachment_804\" class=\"thumbnail wp-caption aligncenter\" style=\"width: 727px\"><img decoding=\"async\" class=\"size-full wp-image-804\" src=\"https:\/\/linuxhostsupport.com\/blog\/wp-content\/uploads\/2019\/02\/Data-Still-There-if-Original-File-Removed.jpg\" alt=\"Data Still There if Original File Removed\" width=\"717\" height=\"344\" srcset=\"https:\/\/linuxhostsupport.com\/blog\/wp-content\/uploads\/2019\/02\/Data-Still-There-if-Original-File-Removed.jpg 717w, https:\/\/linuxhostsupport.com\/blog\/wp-content\/uploads\/2019\/02\/Data-Still-There-if-Original-File-Removed-300x144.jpg 300w\" sizes=\"(max-width: 717px) 100vw, 717px\" \/><figcaption class=\"caption wp-caption-text\">The Data is Still There, Even When the Original File is Removed<\/figcaption><\/figure>\n<p class=\"p1\"><span class=\"s1\">As you can see, once the original file has been deleted, the inode count is decreased by one, and all that&#8217;s left is the hard link. In a way, we have &#8220;moved&#8221; the file. In fact, this is why moving a file to another location is so much faster than copying it. The system creates a hard link in the new directory and deletes the original filename.<\/span><\/p>\n<p class=\"p1\"><span class=\"s1\">The uses of hard links are varied. Most of the time, symbolic links will be enough for most use cases. Using hard links can create confusion as to which file is the original and which isn&#8217;t, while symbolic links are clearly marked. <\/span><\/p>\n<p class=\"p1\"><span class=\"s1\">Occasionally, we&#8217;ll come across a package like ioquake3 for example, which doesn&#8217;t support symbolic links to pk3 files. However, these are likely bugs, and in these sorts of situations, we can fix the problem with hard links, since they&#8217;re the same as file names.\u00a0<\/span><\/p>\n<hr \/>\n<p>Of course, you don\u2019t have to do any of this if you use one of our <a href=\"https:\/\/linuxhostsupport.com\/outsourced-hosting-support.html\">Outsourced Server Support Services<\/a>, in which case you can simply ask our expert Linux admins to set up symbolic links or hard links for you. Just sit back, relax, and let our admins take care of the issue for you. They are available 24&#215;7 to help you with your requests.<\/p>\n<p><span style=\"color: #ff0000;\"><strong>PS.<\/strong><\/span> If you liked this post on using symbolic links and hard links, please share it with your friends on the social networks by using the share shortcut buttons, or simply leave a comment in the comments section below. Thanks.<\/p><div id=\"linux-1237628047\" class=\"linux-after-8th-paragraph linux-entity-placement\" style=\"margin-top: 15px;margin-bottom: 15px;\"><a href=\"https:\/\/www.rosehosting.com\/managed-vps-hosting\/?mtm_campaign=blogs&#038;mtm_source=lhs&#038;mtm_medium=blog&#038;mtm_content=managed-vps&#038;mtm_cid=1340&#038;mtm_placement=inline\" aria-label=\"Untitled\"><img src=\"https:\/\/linuxhostsupport.com\/blog\/wp-content\/uploads\/2020\/12\/1340095_VPSGoogleAds_728x90_042622.jpg\" alt=\"\"  srcset=\"https:\/\/linuxhostsupport.com\/blog\/wp-content\/uploads\/2020\/12\/1340095_VPSGoogleAds_728x90_042622.jpg 728w, https:\/\/linuxhostsupport.com\/blog\/wp-content\/uploads\/2020\/12\/1340095_VPSGoogleAds_728x90_042622-300x37.jpg 300w\" sizes=\"(max-width: 728px) 100vw, 728px\" width=\"728\" height=\"90\"  style=\"display: inline-block;\" \/><\/a><\/div>\n","protected":false},"excerpt":{"rendered":"<p>Back when Linux was in earlier development, it used to utilize a &#8220;flat&#8221; directory structure. This meant that unlike the hierarchical &#8220;tree-link&#8221; folders we have today, everything was located inside of a single folder. No subdirectories existed. It also meant that each file had to have a unique filename, without exceptions! All of that changed [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":808,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[2],"tags":[132,45,133],"class_list":["post-800","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-tutorials","tag-hard-link","tag-linux","tag-symbolic-link"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.2 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>Using Hard and Symbolic Links in Linux | LinuxHostSupport<\/title>\n<meta name=\"description\" content=\"Back when Linux was in earlier development, it used to utilize a &quot;flat&quot; directory structure. This meant that unlike the hierarchical &quot;tree-link&quot; folders\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/linuxhostsupport.com\/blog\/using-hard-and-symbolic-links-in-linux\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Using Hard and Symbolic Links in Linux | LinuxHostSupport\" \/>\n<meta property=\"og:description\" content=\"Back when Linux was in earlier development, it used to utilize a &quot;flat&quot; directory structure. This meant that unlike the hierarchical &quot;tree-link&quot; folders\" \/>\n<meta property=\"og:url\" content=\"https:\/\/linuxhostsupport.com\/blog\/using-hard-and-symbolic-links-in-linux\/\" \/>\n<meta property=\"og:site_name\" content=\"LinuxHostSupport\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/linuxhostsupport\" \/>\n<meta property=\"article:published_time\" content=\"2019-02-28T20:18:46+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/linuxhostsupport.com\/blog\/wp-content\/uploads\/2019\/02\/using-hard-symbolic-links-linux.jpg\" \/>\n\t<meta property=\"og:image:width\" content=\"750\" \/>\n\t<meta property=\"og:image:height\" content=\"410\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/jpeg\" \/>\n<meta name=\"author\" content=\"admin\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@lnxhostsupport\" \/>\n<meta name=\"twitter:site\" content=\"@lnxhostsupport\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"admin\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"5 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/linuxhostsupport.com\/blog\/using-hard-and-symbolic-links-in-linux\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/linuxhostsupport.com\/blog\/using-hard-and-symbolic-links-in-linux\/\"},\"author\":{\"name\":\"admin\",\"@id\":\"https:\/\/linuxhostsupport.com\/blog\/#\/schema\/person\/53a9571ea078cdf350137a1e97423cfb\"},\"headline\":\"Using Hard and Symbolic Links in Linux\",\"datePublished\":\"2019-02-28T20:18:46+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/linuxhostsupport.com\/blog\/using-hard-and-symbolic-links-in-linux\/\"},\"wordCount\":1014,\"commentCount\":0,\"image\":{\"@id\":\"https:\/\/linuxhostsupport.com\/blog\/using-hard-and-symbolic-links-in-linux\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/linuxhostsupport.com\/blog\/wp-content\/uploads\/2019\/02\/using-hard-symbolic-links-linux.jpg\",\"keywords\":[\"hard link\",\"linux\",\"symbolic link\"],\"articleSection\":[\"Tutorials\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\/\/linuxhostsupport.com\/blog\/using-hard-and-symbolic-links-in-linux\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/linuxhostsupport.com\/blog\/using-hard-and-symbolic-links-in-linux\/\",\"url\":\"https:\/\/linuxhostsupport.com\/blog\/using-hard-and-symbolic-links-in-linux\/\",\"name\":\"Using Hard and Symbolic Links in Linux | LinuxHostSupport\",\"isPartOf\":{\"@id\":\"https:\/\/linuxhostsupport.com\/blog\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/linuxhostsupport.com\/blog\/using-hard-and-symbolic-links-in-linux\/#primaryimage\"},\"image\":{\"@id\":\"https:\/\/linuxhostsupport.com\/blog\/using-hard-and-symbolic-links-in-linux\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/linuxhostsupport.com\/blog\/wp-content\/uploads\/2019\/02\/using-hard-symbolic-links-linux.jpg\",\"datePublished\":\"2019-02-28T20:18:46+00:00\",\"author\":{\"@id\":\"https:\/\/linuxhostsupport.com\/blog\/#\/schema\/person\/53a9571ea078cdf350137a1e97423cfb\"},\"description\":\"Back when Linux was in earlier development, it used to utilize a \\\"flat\\\" directory structure. This meant that unlike the hierarchical \\\"tree-link\\\" folders\",\"breadcrumb\":{\"@id\":\"https:\/\/linuxhostsupport.com\/blog\/using-hard-and-symbolic-links-in-linux\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/linuxhostsupport.com\/blog\/using-hard-and-symbolic-links-in-linux\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/linuxhostsupport.com\/blog\/using-hard-and-symbolic-links-in-linux\/#primaryimage\",\"url\":\"https:\/\/linuxhostsupport.com\/blog\/wp-content\/uploads\/2019\/02\/using-hard-symbolic-links-linux.jpg\",\"contentUrl\":\"https:\/\/linuxhostsupport.com\/blog\/wp-content\/uploads\/2019\/02\/using-hard-symbolic-links-linux.jpg\",\"width\":750,\"height\":410,\"caption\":\"Using Hard and Symbolic Links in Linux\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/linuxhostsupport.com\/blog\/using-hard-and-symbolic-links-in-linux\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/linuxhostsupport.com\/blog\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Using Hard and Symbolic Links in Linux\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/linuxhostsupport.com\/blog\/#website\",\"url\":\"https:\/\/linuxhostsupport.com\/blog\/\",\"name\":\"LinuxHostSupport\",\"description\":\"Linux Tutorials and Guides\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/linuxhostsupport.com\/blog\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Person\",\"@id\":\"https:\/\/linuxhostsupport.com\/blog\/#\/schema\/person\/53a9571ea078cdf350137a1e97423cfb\",\"name\":\"admin\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/secure.gravatar.com\/avatar\/ed83c63a34114218f977e1f913be03906d17c7d9c800788fcac345f5edaf6cfa?s=96&d=mm&r=g\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/ed83c63a34114218f977e1f913be03906d17c7d9c800788fcac345f5edaf6cfa?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/ed83c63a34114218f977e1f913be03906d17c7d9c800788fcac345f5edaf6cfa?s=96&d=mm&r=g\",\"caption\":\"admin\"},\"url\":\"https:\/\/linuxhostsupport.com\/blog\/author\/r0s3admin\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Using Hard and Symbolic Links in Linux | LinuxHostSupport","description":"Back when Linux was in earlier development, it used to utilize a \"flat\" directory structure. This meant that unlike the hierarchical \"tree-link\" folders","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/linuxhostsupport.com\/blog\/using-hard-and-symbolic-links-in-linux\/","og_locale":"en_US","og_type":"article","og_title":"Using Hard and Symbolic Links in Linux | LinuxHostSupport","og_description":"Back when Linux was in earlier development, it used to utilize a \"flat\" directory structure. This meant that unlike the hierarchical \"tree-link\" folders","og_url":"https:\/\/linuxhostsupport.com\/blog\/using-hard-and-symbolic-links-in-linux\/","og_site_name":"LinuxHostSupport","article_publisher":"https:\/\/www.facebook.com\/linuxhostsupport","article_published_time":"2019-02-28T20:18:46+00:00","og_image":[{"width":750,"height":410,"url":"https:\/\/linuxhostsupport.com\/blog\/wp-content\/uploads\/2019\/02\/using-hard-symbolic-links-linux.jpg","type":"image\/jpeg"}],"author":"admin","twitter_card":"summary_large_image","twitter_creator":"@lnxhostsupport","twitter_site":"@lnxhostsupport","twitter_misc":{"Written by":"admin","Est. reading time":"5 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/linuxhostsupport.com\/blog\/using-hard-and-symbolic-links-in-linux\/#article","isPartOf":{"@id":"https:\/\/linuxhostsupport.com\/blog\/using-hard-and-symbolic-links-in-linux\/"},"author":{"name":"admin","@id":"https:\/\/linuxhostsupport.com\/blog\/#\/schema\/person\/53a9571ea078cdf350137a1e97423cfb"},"headline":"Using Hard and Symbolic Links in Linux","datePublished":"2019-02-28T20:18:46+00:00","mainEntityOfPage":{"@id":"https:\/\/linuxhostsupport.com\/blog\/using-hard-and-symbolic-links-in-linux\/"},"wordCount":1014,"commentCount":0,"image":{"@id":"https:\/\/linuxhostsupport.com\/blog\/using-hard-and-symbolic-links-in-linux\/#primaryimage"},"thumbnailUrl":"https:\/\/linuxhostsupport.com\/blog\/wp-content\/uploads\/2019\/02\/using-hard-symbolic-links-linux.jpg","keywords":["hard link","linux","symbolic link"],"articleSection":["Tutorials"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/linuxhostsupport.com\/blog\/using-hard-and-symbolic-links-in-linux\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/linuxhostsupport.com\/blog\/using-hard-and-symbolic-links-in-linux\/","url":"https:\/\/linuxhostsupport.com\/blog\/using-hard-and-symbolic-links-in-linux\/","name":"Using Hard and Symbolic Links in Linux | LinuxHostSupport","isPartOf":{"@id":"https:\/\/linuxhostsupport.com\/blog\/#website"},"primaryImageOfPage":{"@id":"https:\/\/linuxhostsupport.com\/blog\/using-hard-and-symbolic-links-in-linux\/#primaryimage"},"image":{"@id":"https:\/\/linuxhostsupport.com\/blog\/using-hard-and-symbolic-links-in-linux\/#primaryimage"},"thumbnailUrl":"https:\/\/linuxhostsupport.com\/blog\/wp-content\/uploads\/2019\/02\/using-hard-symbolic-links-linux.jpg","datePublished":"2019-02-28T20:18:46+00:00","author":{"@id":"https:\/\/linuxhostsupport.com\/blog\/#\/schema\/person\/53a9571ea078cdf350137a1e97423cfb"},"description":"Back when Linux was in earlier development, it used to utilize a \"flat\" directory structure. This meant that unlike the hierarchical \"tree-link\" folders","breadcrumb":{"@id":"https:\/\/linuxhostsupport.com\/blog\/using-hard-and-symbolic-links-in-linux\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/linuxhostsupport.com\/blog\/using-hard-and-symbolic-links-in-linux\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/linuxhostsupport.com\/blog\/using-hard-and-symbolic-links-in-linux\/#primaryimage","url":"https:\/\/linuxhostsupport.com\/blog\/wp-content\/uploads\/2019\/02\/using-hard-symbolic-links-linux.jpg","contentUrl":"https:\/\/linuxhostsupport.com\/blog\/wp-content\/uploads\/2019\/02\/using-hard-symbolic-links-linux.jpg","width":750,"height":410,"caption":"Using Hard and Symbolic Links in Linux"},{"@type":"BreadcrumbList","@id":"https:\/\/linuxhostsupport.com\/blog\/using-hard-and-symbolic-links-in-linux\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/linuxhostsupport.com\/blog\/"},{"@type":"ListItem","position":2,"name":"Using Hard and Symbolic Links in Linux"}]},{"@type":"WebSite","@id":"https:\/\/linuxhostsupport.com\/blog\/#website","url":"https:\/\/linuxhostsupport.com\/blog\/","name":"LinuxHostSupport","description":"Linux Tutorials and Guides","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/linuxhostsupport.com\/blog\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Person","@id":"https:\/\/linuxhostsupport.com\/blog\/#\/schema\/person\/53a9571ea078cdf350137a1e97423cfb","name":"admin","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/secure.gravatar.com\/avatar\/ed83c63a34114218f977e1f913be03906d17c7d9c800788fcac345f5edaf6cfa?s=96&d=mm&r=g","url":"https:\/\/secure.gravatar.com\/avatar\/ed83c63a34114218f977e1f913be03906d17c7d9c800788fcac345f5edaf6cfa?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/ed83c63a34114218f977e1f913be03906d17c7d9c800788fcac345f5edaf6cfa?s=96&d=mm&r=g","caption":"admin"},"url":"https:\/\/linuxhostsupport.com\/blog\/author\/r0s3admin\/"}]}},"_links":{"self":[{"href":"https:\/\/linuxhostsupport.com\/blog\/wp-json\/wp\/v2\/posts\/800","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/linuxhostsupport.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/linuxhostsupport.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/linuxhostsupport.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/linuxhostsupport.com\/blog\/wp-json\/wp\/v2\/comments?post=800"}],"version-history":[{"count":8,"href":"https:\/\/linuxhostsupport.com\/blog\/wp-json\/wp\/v2\/posts\/800\/revisions"}],"predecessor-version":[{"id":820,"href":"https:\/\/linuxhostsupport.com\/blog\/wp-json\/wp\/v2\/posts\/800\/revisions\/820"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/linuxhostsupport.com\/blog\/wp-json\/wp\/v2\/media\/808"}],"wp:attachment":[{"href":"https:\/\/linuxhostsupport.com\/blog\/wp-json\/wp\/v2\/media?parent=800"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/linuxhostsupport.com\/blog\/wp-json\/wp\/v2\/categories?post=800"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/linuxhostsupport.com\/blog\/wp-json\/wp\/v2\/tags?post=800"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}