How Do I Create a Symbolic Link in Linux?

How Do I Create a Symbolic Link in Linux?
Contents

To create a symbolic link pass the -s option to the ln command followed by the target file and the name of link. In the following example a file is symlinked into the bin folder.

To do so, follow these steps:

  1. Connect to your hosting account via SSH.
  2. Use ls and cd to navigate to the directory where you would like the symbolic link to be placed. Helpful Hint. ls will return a list of files in your current location. …
  3. Once there, run the command: ln -s [source-filename] [link-filename]

7 янв. 2020 г.

Maya Lin-Takahashi
Author

Maya Lin-Takahashi

Maya is a hardware enthusiast who tests and reviews smart home devices, smartphones, wearables, and audio gear. She focuses on practical consumer value and build quality.