Linux ln command

When you want to create “shortcuts” to different files in a Linux system you have to create a Symbolic Link to that file. This is done using the ln command. In this article, we will cover the basic usage of the Linux ln command that you can experiment with on an SSH , SSD VPS or a Dedicated server.

Create a symbolic link

ln -s /path/to/shortcut/file /path/to/linked/file

Creating a link in interactive mode

By using the -i option you will be prompted for each action that you do

ln -si file /path/to/linked/file
ln -sivfile /path/to/linked/file # This will also provide feedback
  • 0 Utilizadores acharam útil
Esta resposta foi útil?

Artigos Relacionados

Linux tar Command

The Linux tar command is used to compress and extract files to and from an archive. In this...

Linux file command

The file command is used to check a file’s type and contents in Linux environment. It is most...

Linux export command

When you’re managing your shell’s variables and you wish to save them to your environment you can...

Linux su command

The su command is most commonly used to switch to another user. You will then be able to run...

Linux wc command

If you’re interested in finding the word count or lines of a file in your Linux environment you...

Powered by WHMCompleteSolution