{"id":955,"date":"2012-06-27T12:30:28","date_gmt":"2012-06-27T17:30:28","guid":{"rendered":"https:\/\/www.bodhost.com\/blog\/?p=955"},"modified":"2026-02-26T13:59:05","modified_gmt":"2026-02-26T13:59:05","slug":"what-are-symlinks-symbolic-links-in-linux-unix","status":"publish","type":"post","link":"https:\/\/www.bodhost.com\/blog\/what-are-symlinks-symbolic-links-in-linux-unix\/","title":{"rendered":"What are symlinks \/ symbolic links in Linux \/ Unix?"},"content":{"rendered":"\r\n<p><strong>Symlinks<\/strong> are used a lot in Linux- and Unix-based systems so you may be wondering as to what exactly a &#8220;symlink&#8221; is. If you have <a title=\"Linux VPS Hosting\" href=\"https:\/\/www.bodhost.com\/web-servers\/linux-vps-hosting\" target=\"_blank\" rel=\"noopener\">Linux VPS Hosting<\/a> and you use SSH, you&#8217;ll often find many files in the file structure are symlinks.<\/p>\r\n\r\n\r\n\r\n<h3 class=\"wp-block-heading\"><img loading=\"lazy\" decoding=\"async\" class=\"alignleft size-full wp-image-956\" title=\"1340817824_application-xml\" src=\"https:\/\/www.bodhost.com\/blog\/wp-content\/uploads\/2012\/06\/1340817824_application-xml.png\" alt=\"\" width=\"128\" height=\"128\" \/><strong>What are symlinks used for?<\/strong><\/h3>\r\n\r\n\r\n\r\n<p>Symlinks are a specific type of file that has a reference to a physical location on the Linux server hard drive &#8211; such as another file or directory that exists on the machine&#8217;s hard drive. The most common symlink you&#8217;ll likely come across when using an FTP client is the www and public_html directories. The <em>www <\/em>directory is a symlink to the public_html <em>physical directory<\/em>. So this means any files or directories uploaded to the <em>www <\/em>folder is the same as doing so directly in the <em>public_html <\/em>folder. The two that seemingly look like two separate folders are merely just one.<\/p>\r\n\r\n\r\n\r\n<h4 class=\"wp-block-heading\"><strong>Why are they useful?<\/strong><\/h4>\r\n\r\n\r\n\r\n<p>Symlinks are very useful. For example, if you use a Linux-based operating system on your desktop, you could easily create a symbolic link to the Applications folder on your desktop. So in this way, a symlink would act as a shortcut to that specific folder, that resides in a specific location on the hard drive.<\/p>\r\n\r\n\r\n\r\n<p>However, in the case of a Linux web server, you may have an important shell script in one folder but there are two folders on the server that do similar functions, so for human convenience, you may want to create a symlink to the shell script on the other <em>similar <\/em>folder.<\/p>\r\n\r\n\r\n\r\n<p>No extra storage space is really being used; you <em>could <\/em>simply have multiple copies of the shell script on the hard drive, but that wastes unnecessary space, which is another reason why symlinks are useful.<\/p>\r\n\r\n\r\n\r\n<p>In fact, symlinks can save <em>a lot<\/em> of space, because a symlink simply contains a text string that determines where the operating system needs to go to find the physical file or directory on the server.<\/p>\r\n","protected":false},"excerpt":{"rendered":"<p>Symlinks are used a lot in Linux- and Unix-based systems so you may be wondering as to what exactly a &#8220;symlink&#8221; is. If you have Linux VPS Hosting and you use SSH, you&#8217;ll often find many files in the file structure are symlinks. What are symlinks used for? Symlinks are a specific type of file [&hellip;]<\/p>\n","protected":false},"author":5,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[10],"tags":[216,77,128,217,215,214,218,169],"class_list":["post-955","post","type-post","status-publish","format-standard","hentry","category-vps-hosting","tag-centos","tag-linux-server","tag-linux-vps","tag-server","tag-symbolic-links","tag-symlinks","tag-unix","tag-unix-server"],"aioseo_notices":[],"_links":{"self":[{"href":"https:\/\/www.bodhost.com\/blog\/wp-json\/wp\/v2\/posts\/955","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.bodhost.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.bodhost.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.bodhost.com\/blog\/wp-json\/wp\/v2\/users\/5"}],"replies":[{"embeddable":true,"href":"https:\/\/www.bodhost.com\/blog\/wp-json\/wp\/v2\/comments?post=955"}],"version-history":[{"count":17,"href":"https:\/\/www.bodhost.com\/blog\/wp-json\/wp\/v2\/posts\/955\/revisions"}],"predecessor-version":[{"id":5542,"href":"https:\/\/www.bodhost.com\/blog\/wp-json\/wp\/v2\/posts\/955\/revisions\/5542"}],"wp:attachment":[{"href":"https:\/\/www.bodhost.com\/blog\/wp-json\/wp\/v2\/media?parent=955"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.bodhost.com\/blog\/wp-json\/wp\/v2\/categories?post=955"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.bodhost.com\/blog\/wp-json\/wp\/v2\/tags?post=955"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}