{"id":68632,"date":"2023-09-15T18:01:26","date_gmt":"2023-09-15T10:01:26","guid":{"rendered":"https:\/\/www.hongkiat.com\/blog\/?p=68632"},"modified":"2023-09-20T15:48:23","modified_gmt":"2023-09-20T07:48:23","slug":"linux-command-ln","status":"publish","type":"post","link":"https:\/\/www.hongkiat.com\/blog\/linux-command-ln\/","title":{"rendered":"How to Use the &#8216;ln&#8217; Command in Linux"},"content":{"rendered":"<p>The <code>ln<\/code> command in Linux, short for \u201clink,\u201d is a powerful tool that allows users to create links between files and directories. By creating these connections, it facilitates efficient file management and organization within the Linux operating system. Similar to commands like <code><a href=\"https:\/\/www.hongkiat.com\/blog\/linux-command-cp\/\">cp<\/a><\/code> for copying files, the <code>ln<\/code> command provides a way to reference the same content from different locations without duplicating the data.<\/p>\n<p>It\u2019s commonly used for creating symbolic links, which can be handy for managing configurations, scripts, or shared resources. For those looking to streamline their workflow, the <code>ln<\/code> command can be used alongside other commands such as <code>chmod<\/code> to set permissions, or <code><a href=\"https:\/\/www.hongkiat.com\/blog\/linux-command-find\/\">find<\/a><\/code> to locate files. Whether you\u2019re a seasoned professional or a Linux beginner, understanding the <code>ln<\/code> command opens up new possibilities in file management and system customization.<\/p>\n<h2>How to Use <code>ln<\/code><\/h2>\n<h3>1. Creating a Hard Link<\/h3>\n<p><strong>Syntax:<\/strong> <code>ln TARGET LINK_NAME<\/code><\/p>\n<p><strong>Explanation<\/strong>: Creates a hard link to a file.<\/p>\n<p><strong>Example:<\/strong> <code>ln file1.txt link1.txt<\/code><\/p>\n<p><strong>Output:<\/strong><\/p>\n<pre>\r\n$\r\n<\/pre>\n<p>No output is shown in the terminal, indicating success. A hard link named <code>link1.txt<\/code> to the file <code>file1.txt<\/code> has been created.<\/p>\n<hr>\n<h3>2. Creating a Symbolic Link<\/h3>\n<p><strong>Syntax:<\/strong> <code>ln -s TARGET LINK_NAME<\/code><\/p>\n<p><strong>Explanation<\/strong>: Creates a symbolic link to a file or directory.<\/p>\n<p><strong>Example:<\/strong> <code>ln -s \/path\/to\/original\/file.txt symlink.txt<\/code><\/p>\n<p><strong>Output:<\/strong><\/p>\n<pre>\r\n$\r\n<\/pre>\n<p>No output is shown in the terminal, indicating success. A symbolic link named <code>symlink.txt<\/code> pointing to <code>\/path\/to\/original\/file.txt<\/code> has been created.<\/p>\n<hr>\n<h3>3. Creating a Symbolic Link to a Directory<\/h3>\n<p><strong>Syntax:<\/strong> <code>ln -s TARGET_DIRECTORY LINK_NAME<\/code><\/p>\n<p><strong>Explanation<\/strong>: Creates a symbolic link to a directory.<\/p>\n<p><strong>Example:<\/strong> <code>ln -s \/path\/to\/original\/directory linked_directory<\/code><\/p>\n<p><strong>Output:<\/strong><\/p>\n<pre>\r\n$\r\n<\/pre>\n<p>No output is shown in the terminal, indicating success. A symbolic link named <code>linked_directory<\/code> pointing to <code>\/path\/to\/original\/directory<\/code> has been created.<\/p>\n<hr>\n<h3>4. Creating a Hard Link with Verbose Output<\/h3>\n<p><strong>Syntax:<\/strong> <code>ln -v TARGET LINK_NAME<\/code><\/p>\n<p><strong>Explanation<\/strong>: Creates a hard link to a file and displays a message describing the action.<\/p>\n<p><strong>Example:<\/strong> <code>ln -v file2.txt link2.txt<\/code><\/p>\n<p><strong>Output:<\/strong><\/p>\n<pre>\r\n$ ln -v file2.txt link2.txt\r\n'link2.txt' -> 'file2.txt'\r\n$\r\n<\/pre>\n<p>The terminal output shows the message <code>link2.txt' -> 'file2.txt<\/code>, indicating that a hard link named <code>link2.txt<\/code> to the file <code>file2.txt<\/code> has been created.<\/p>\n<hr>\n<h3>5. Creating a Hard Link in a Specific Directory<\/h3>\n<p><strong>Syntax:<\/strong> <code>ln TARGET DIRECTORY<\/code><\/p>\n<p><strong>Explanation<\/strong>: Creates a hard link to a file in a specific directory.<\/p>\n<p><strong>Example:<\/strong> <code>ln file3.txt \/path\/to\/directory<\/code><\/p>\n<p><strong>Output:<\/strong><\/p>\n<pre>\r\n$\r\n<\/pre>\n<p>No output is shown in the terminal, indicating success. A hard link to <code>file3.txt<\/code> has been created in the specified directory.<\/p>\n<hr>\n<h3>6. Creating Symbolic Links Interactively<\/h3>\n<p><strong>Syntax:<\/strong> <code>ln -si TARGET LINK_NAME<\/code><\/p>\n<p><strong>Explanation<\/strong>: Creates a symbolic link, prompting before overwriting existing files.<\/p>\n<p><strong>Example:<\/strong> <code>ln -si \/path\/to\/file4.txt symlink4.txt<\/code><\/p>\n<p><strong>Output:<\/strong><\/p>\n<pre>\r\n$ ln -si \/path\/to\/file4.txt symlink4.txt\r\nln: replace 'symlink4.txt'? y\r\n$\r\n<\/pre>\n<p>The terminal prompts the user to confirm overwriting the existing <code>symlink4.txt<\/code>. The user enters \u2018<code>y<\/code>\u2018, and the symbolic link is created.<\/p>\n<hr>\n<h3>7. Creating a Hard Link with a Backup of Existing Destination Files<\/h3>\n<p><strong>Syntax:<\/strong> <code>ln -b TARGET LINK_NAME<\/code><\/p>\n<p><strong>Explanation<\/strong>: Creates a hard link, making a backup of an existing destination file.<\/p>\n<p><strong>Example:<\/strong> <code>ln -b file5.txt link5.txt<\/code><\/p>\n<p><strong>Output:<\/strong><\/p>\n<pre>\r\n$\r\n<\/pre>\n<p>No output is shown in the terminal, indicating success. If <code>link5.txt<\/code> already existed, a backup is created, and the hard link is made.<\/p>\n<hr>\n<h3>8. Creating a Symbolic Link with Custom Suffix for Backup<\/h3>\n<p><strong>Syntax:<\/strong> <code>ln -s -b --suffix=.backup TARGET LINK_NAME<\/code><\/p>\n<p><strong>Explanation<\/strong>: Creates a symbolic link, making a backup of an existing destination file with a custom suffix.<\/p>\n<p><strong>Example:<\/strong> <code>ln -s -b --suffix=.backup \/path\/to\/file6.txt symlink6.txt<\/code><\/p>\n<p><strong>Output:<\/strong><\/p>\n<pre>\r\n$\r\n<\/pre>\n<p>No output is shown in the terminal, indicating success. If <code>symlink6.txt<\/code> already existed, a backup with the suffix <code>.backup<\/code> is created, and the symbolic link is made.<\/p>\n<hr>\n<h3 style=\"padding-bottom:10px\">More Linux commands:<\/h3>\n<table>\n<tbody>\n<tr>\n<td width=\"150\">Directory Operations<\/td>\n<td><a href=\"https:\/\/www.hongkiat.com\/blog\/linux-command-rm-rmdir\/\"><code>rmdir<\/code><\/a> \u00b7 <a href=\"https:\/\/www.hongkiat.com\/blog\/linux-command-cd\/\"><code>cd<\/code><\/a> \u00b7 <a href=\"https:\/\/www.hongkiat.com\/blog\/linux-command-pwd\/\"><code>pwd<\/code><\/a> \u00b7 <a href=\"https:\/\/www.hongkiat.com\/blog\/linux-command-exa\/\"><code>exa<\/code><\/a> \u00b7 <a href=\"https:\/\/www.hongkiat.com\/blog\/linux-command-ls\/\"><code>ls<\/code><\/a><\/td>\n<\/tr>\n<tr>\n<td width=\"150\">File Operations<\/td>\n<td><a href=\"https:\/\/www.hongkiat.com\/blog\/linux-command-cat\/\"><code>cat<\/code><\/a> \u00b7 <a href=\"https:\/\/www.hongkiat.com\/blog\/linux-command-cp\/\"><code>cp<\/code><\/a> \u00b7 <a href=\"https:\/\/www.hongkiat.com\/blog\/linux-command-dd\/\"><code>dd<\/code><\/a> \u00b7 <a href=\"https:\/\/www.hongkiat.com\/blog\/linux-command-less\/\"><code>less<\/code><\/a> \u00b7 <a href=\"https:\/\/www.hongkiat.com\/blog\/linux-command-touch\/\"><code>touch<\/code><\/a> \u00b7 <a href=\"https:\/\/www.hongkiat.com\/blog\/linux-command-ln\/\"><code>ln<\/code><\/a> \u00b7 <a href=\"https:\/\/www.hongkiat.com\/blog\/linux-command-rename\/\"><code>rename<\/code><\/a> \u00b7 <a href=\"https:\/\/www.hongkiat.com\/blog\/linux-command-more\/\"><code>more<\/code><\/a> \u00b7 <a href=\"https:\/\/www.hongkiat.com\/blog\/linux-command-head\/\"><code>head<\/code><\/a><\/td>\n<\/tr>\n<tr>\n<td width=\"150\">File System Operations<\/td>\n<td><a href=\"https:\/\/www.hongkiat.com\/blog\/linux-command-chown\/\"><code>chown<\/code><\/a> \u00b7 <a href=\"https:\/\/www.hongkiat.com\/blog\/linux-command-mkfs\/\"><code>mkfs<\/code><\/a> \u00b7 <a href=\"https:\/\/www.hongkiat.com\/blog\/linux-command-locate\/\"><code>locate<\/code><\/a><\/td>\n<\/tr>\n<tr>\n<td width=\"150\">Networking<\/td>\n<td><a href=\"https:\/\/www.hongkiat.com\/blog\/linux-command-ping\/\"><code>ping<\/code><\/a> \u00b7 <a href=\"https:\/\/www.hongkiat.com\/blog\/linux-command-curl\/\"><code>curl<\/code><\/a> \u00b7 <a href=\"https:\/\/www.hongkiat.com\/blog\/linux-command-wget\/\"><code>wget<\/code><\/a> \u00b7 <a href=\"https:\/\/www.hongkiat.com\/blog\/linux-command-iptables\/\"><code>iptables<\/code><\/a> \u00b7 <a href=\"https:\/\/www.hongkiat.com\/blog\/linux-command-mtr\/\"><code>mtr<\/code><\/a><\/td>\n<\/tr>\n<tr>\n<td width=\"150\">Search and Text Processing<\/td>\n<td><a href=\"https:\/\/www.hongkiat.com\/blog\/linux-command-find\/\"><code>find<\/code><\/a> \u00b7 <a href=\"https:\/\/www.hongkiat.com\/blog\/linux-command-grep\/\"><code>grep<\/code><\/a> \u00b7 <a href=\"https:\/\/www.hongkiat.com\/blog\/linux-command-sed\/\"><code>sed<\/code><\/a> \u00b7 <a href=\"https:\/\/www.hongkiat.com\/blog\/linux-command-whatis\/\"><code>whatis<\/code><\/a> \u00b7 <a href=\"https:\/\/www.hongkiat.com\/blog\/linux-command-ripgrep\/\"><code>ripgrep<\/code><\/a> \u00b7 <a href=\"https:\/\/www.hongkiat.com\/blog\/linux-command-fd\/\"><code>fd<\/code><\/a> \u00b7 <a href=\"https:\/\/www.hongkiat.com\/blog\/linux-command-tldr\/\"><code>tldr<\/code><\/a><\/td>\n<\/tr>\n<tr>\n<td width=\"150\">System Information and Management<\/td>\n<td><a href=\"https:\/\/www.hongkiat.com\/blog\/linux-command-env\/\"><code>env<\/code><\/a> \u00b7 <a href=\"https:\/\/www.hongkiat.com\/blog\/linux-command-history\/\"><code>history<\/code><\/a> \u00b7 <a href=\"https:\/\/www.hongkiat.com\/blog\/linux-command-top\/\"><code>top<\/code><\/a> \u00b7 <a href=\"https:\/\/www.hongkiat.com\/blog\/linux-command-who\/\"><code>who<\/code><\/a> \u00b7 <a href=\"https:\/\/www.hongkiat.com\/blog\/linux-command-htop\/\"><code>htop<\/code><\/a> \u00b7 <a href=\"https:\/\/www.hongkiat.com\/blog\/linux-command-glances\/\"><code>glances<\/code><\/a> \u00b7 <a href=\"https:\/\/www.hongkiat.com\/blog\/linux-command-lsof\/\"><code>lsof<\/code><\/a><\/td>\n<\/tr>\n<tr>\n<td width=\"150\">User and Session Management<\/td>\n<td><a href=\"https:\/\/www.hongkiat.com\/blog\/linux-command-screen\/\"><code>screen<\/code><\/a> \u00b7 <a href=\"https:\/\/www.hongkiat.com\/blog\/linux-command-su\/\"><code>su<\/code><\/a> \u00b7 <a href=\"https:\/\/www.hongkiat.com\/blog\/linux-command-sudo\/\"><code>sudo<\/code><\/a> \u00b7 <a href=\"https:\/\/www.hongkiat.com\/blog\/linux-command-open\/\"><code>open<\/code><\/a><\/td>\n<\/tr>\n<\/tbody>\n<\/table>","protected":false},"excerpt":{"rendered":"<p>Learn how to use the &#8216;ln&#8217; command in Linux for better file organization and system customization.<\/p>\n","protected":false},"author":9,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_feature_clip_id":0,"_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_post_was_ever_published":false},"categories":[3397],"tags":[888,3316],"topic":[],"class_list":["entry-content","is-maxi"],"acf":[],"yoast_head":"<!-- This site is optimized with the Yoast SEO Premium plugin v22.8 (Yoast SEO v27.9) - https:\/\/yoast.com\/product\/yoast-seo-premium-wordpress\/ -->\n<title>How to Use the &#039;ln&#039; Command in Linux - Hongkiat<\/title>\n<meta name=\"description\" content=\"Learn how to use the &#039;ln&#039; command in Linux for better file organization and system customization.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.hongkiat.com\/blog\/linux-command-ln\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"How to Use the &#039;ln&#039; Command in Linux\" \/>\n<meta property=\"og:description\" content=\"Learn how to use the &#039;ln&#039; command in Linux for better file organization and system customization.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.hongkiat.com\/blog\/linux-command-ln\/\" \/>\n<meta property=\"og:site_name\" content=\"Hongkiat\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/hongkiatcom\" \/>\n<meta property=\"article:published_time\" content=\"2023-09-15T10:01:26+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2023-09-20T07:48:23+00:00\" \/>\n<meta name=\"author\" content=\"Hongkiat.com\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@hongkiat\" \/>\n<meta name=\"twitter:site\" content=\"@hongkiat\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Hongkiat.com\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"3 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/linux-command-ln\\\/#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/linux-command-ln\\\/\"},\"author\":{\"name\":\"Hongkiat.com\",\"@id\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/#\\\/schema\\\/person\\\/7cc686597d92f9086729e4bcc1577ba3\"},\"headline\":\"How to Use the &#8216;ln&#8217; Command in Linux\",\"datePublished\":\"2023-09-15T10:01:26+00:00\",\"dateModified\":\"2023-09-20T07:48:23+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/linux-command-ln\\\/\"},\"wordCount\":472,\"publisher\":{\"@id\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/#organization\"},\"keywords\":[\"Linux\",\"Linux Commands\"],\"articleSection\":[\"Desktop\"],\"inLanguage\":\"en-US\"},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/linux-command-ln\\\/\",\"url\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/linux-command-ln\\\/\",\"name\":\"How to Use the 'ln' Command in Linux - Hongkiat\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/#website\"},\"datePublished\":\"2023-09-15T10:01:26+00:00\",\"dateModified\":\"2023-09-20T07:48:23+00:00\",\"description\":\"Learn how to use the 'ln' command in Linux for better file organization and system customization.\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/linux-command-ln\\\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/linux-command-ln\\\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/linux-command-ln\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"How to Use the &#8216;ln&#8217; Command in Linux\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/#website\",\"url\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/\",\"name\":\"Hongkiat\",\"description\":\"Tech and Design Tips\",\"publisher\":{\"@id\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/#organization\",\"name\":\"Hongkiat.com\",\"url\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/#\\\/schema\\\/logo\\\/image\\\/\",\"url\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/wp-content\\\/uploads\\\/hkdc-logo-rect-yoast.jpg\",\"contentUrl\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/wp-content\\\/uploads\\\/hkdc-logo-rect-yoast.jpg\",\"width\":1200,\"height\":799,\"caption\":\"Hongkiat.com\"},\"image\":{\"@id\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/#\\\/schema\\\/logo\\\/image\\\/\"},\"sameAs\":[\"https:\\\/\\\/www.facebook.com\\\/hongkiatcom\",\"https:\\\/\\\/x.com\\\/hongkiat\",\"https:\\\/\\\/www.pinterest.com\\\/hongkiat\\\/\"]},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/#\\\/schema\\\/person\\\/7cc686597d92f9086729e4bcc1577ba3\",\"name\":\"Hongkiat.com\",\"description\":\"This post is published by an HKDC (hongkiat.com) staff. (I.e., intern, staff writer, or editor).\",\"sameAs\":[\"https:\\\/\\\/www.hongkiat.com\"],\"url\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/author\\\/com\\\/\"}]}<\/script>\n<!-- \/ Yoast SEO Premium plugin. -->","yoast_head_json":{"title":"How to Use the 'ln' Command in Linux - Hongkiat","description":"Learn how to use the 'ln' command in Linux for better file organization and system customization.","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:\/\/www.hongkiat.com\/blog\/linux-command-ln\/","og_locale":"en_US","og_type":"article","og_title":"How to Use the 'ln' Command in Linux","og_description":"Learn how to use the 'ln' command in Linux for better file organization and system customization.","og_url":"https:\/\/www.hongkiat.com\/blog\/linux-command-ln\/","og_site_name":"Hongkiat","article_publisher":"https:\/\/www.facebook.com\/hongkiatcom","article_published_time":"2023-09-15T10:01:26+00:00","article_modified_time":"2023-09-20T07:48:23+00:00","author":"Hongkiat.com","twitter_card":"summary_large_image","twitter_creator":"@hongkiat","twitter_site":"@hongkiat","twitter_misc":{"Written by":"Hongkiat.com","Est. reading time":"3 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.hongkiat.com\/blog\/linux-command-ln\/#article","isPartOf":{"@id":"https:\/\/www.hongkiat.com\/blog\/linux-command-ln\/"},"author":{"name":"Hongkiat.com","@id":"https:\/\/www.hongkiat.com\/blog\/#\/schema\/person\/7cc686597d92f9086729e4bcc1577ba3"},"headline":"How to Use the &#8216;ln&#8217; Command in Linux","datePublished":"2023-09-15T10:01:26+00:00","dateModified":"2023-09-20T07:48:23+00:00","mainEntityOfPage":{"@id":"https:\/\/www.hongkiat.com\/blog\/linux-command-ln\/"},"wordCount":472,"publisher":{"@id":"https:\/\/www.hongkiat.com\/blog\/#organization"},"keywords":["Linux","Linux Commands"],"articleSection":["Desktop"],"inLanguage":"en-US"},{"@type":"WebPage","@id":"https:\/\/www.hongkiat.com\/blog\/linux-command-ln\/","url":"https:\/\/www.hongkiat.com\/blog\/linux-command-ln\/","name":"How to Use the 'ln' Command in Linux - Hongkiat","isPartOf":{"@id":"https:\/\/www.hongkiat.com\/blog\/#website"},"datePublished":"2023-09-15T10:01:26+00:00","dateModified":"2023-09-20T07:48:23+00:00","description":"Learn how to use the 'ln' command in Linux for better file organization and system customization.","breadcrumb":{"@id":"https:\/\/www.hongkiat.com\/blog\/linux-command-ln\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.hongkiat.com\/blog\/linux-command-ln\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.hongkiat.com\/blog\/linux-command-ln\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.hongkiat.com\/blog\/"},{"@type":"ListItem","position":2,"name":"How to Use the &#8216;ln&#8217; Command in Linux"}]},{"@type":"WebSite","@id":"https:\/\/www.hongkiat.com\/blog\/#website","url":"https:\/\/www.hongkiat.com\/blog\/","name":"Hongkiat","description":"Tech and Design Tips","publisher":{"@id":"https:\/\/www.hongkiat.com\/blog\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.hongkiat.com\/blog\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/www.hongkiat.com\/blog\/#organization","name":"Hongkiat.com","url":"https:\/\/www.hongkiat.com\/blog\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.hongkiat.com\/blog\/#\/schema\/logo\/image\/","url":"https:\/\/www.hongkiat.com\/blog\/wp-content\/uploads\/hkdc-logo-rect-yoast.jpg","contentUrl":"https:\/\/www.hongkiat.com\/blog\/wp-content\/uploads\/hkdc-logo-rect-yoast.jpg","width":1200,"height":799,"caption":"Hongkiat.com"},"image":{"@id":"https:\/\/www.hongkiat.com\/blog\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/www.facebook.com\/hongkiatcom","https:\/\/x.com\/hongkiat","https:\/\/www.pinterest.com\/hongkiat\/"]},{"@type":"Person","@id":"https:\/\/www.hongkiat.com\/blog\/#\/schema\/person\/7cc686597d92f9086729e4bcc1577ba3","name":"Hongkiat.com","description":"This post is published by an HKDC (hongkiat.com) staff. (I.e., intern, staff writer, or editor).","sameAs":["https:\/\/www.hongkiat.com"],"url":"https:\/\/www.hongkiat.com\/blog\/author\/com\/"}]}},"jetpack_featured_media_url":"https:\/\/","jetpack_shortlink":"https:\/\/wp.me\/p4uxU-hQY","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/www.hongkiat.com\/blog\/wp-json\/wp\/v2\/posts\/68632","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.hongkiat.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.hongkiat.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.hongkiat.com\/blog\/wp-json\/wp\/v2\/users\/9"}],"replies":[{"embeddable":true,"href":"https:\/\/www.hongkiat.com\/blog\/wp-json\/wp\/v2\/comments?post=68632"}],"version-history":[{"count":3,"href":"https:\/\/www.hongkiat.com\/blog\/wp-json\/wp\/v2\/posts\/68632\/revisions"}],"predecessor-version":[{"id":69375,"href":"https:\/\/www.hongkiat.com\/blog\/wp-json\/wp\/v2\/posts\/68632\/revisions\/69375"}],"wp:attachment":[{"href":"https:\/\/www.hongkiat.com\/blog\/wp-json\/wp\/v2\/media?parent=68632"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.hongkiat.com\/blog\/wp-json\/wp\/v2\/categories?post=68632"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.hongkiat.com\/blog\/wp-json\/wp\/v2\/tags?post=68632"},{"taxonomy":"topic","embeddable":true,"href":"https:\/\/www.hongkiat.com\/blog\/wp-json\/wp\/v2\/topic?post=68632"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}