Sapiens Search

How to create a symbolic link (symlink)?

ln -s <Path to the file> <Path to the target>

Example

ln -s /media/data/script.sh /home/garou/scripts/


Arcam Sapientia

We can use sudo in the beginning of the command if we don't have write privilege in the target.

We can specify a new name to link too, like:
sudo ln -s /media/data/script.sh /usr/bin/macro.sh

No comments:

Post a Comment