From d4e8ed6462a5be29c8fcbe5dbb5ce1225da9846d Mon Sep 17 00:00:00 2001 From: Chris Jesz Date: Tue, 27 Nov 2018 19:25:14 -0500 Subject: [PATCH] Created bash ln page (#22884) Added file/folder for bash ln command along with brief explanation, example, and further details. --- guide/english/bash/bash-ln/index.md | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 guide/english/bash/bash-ln/index.md diff --git a/guide/english/bash/bash-ln/index.md b/guide/english/bash/bash-ln/index.md new file mode 100644 index 0000000000..932d223378 --- /dev/null +++ b/guide/english/bash/bash-ln/index.md @@ -0,0 +1,23 @@ +--- +title: Bash Link +--- + ## Bash command: ln + The `ln` commands stands for link and it allows you to link to an existing file or directory. This makes it easy to have references to a single file or directory in multiple places. + + ### Usage + ``` + ln + ``` + + Commonly used options: + * `-s` - Symbolic link. This is considered a soft link meaning that if the link is removed the original file or directory is not affected. + + ### Examples + #### Create a link to the /etc/hosts file in /usr/local + ```bash + ln -s /etc/hosts /usr/local/hosts_link + ``` + + ### More Information + * Run `man ln` for further details and complete list of options. + * [Wikipedia] (https://en.wikipedia.org/wiki/Ln_(Unix))