4 examples for ln

{{ score }}
  # Creates a soft link
ln -s /full/path/to/original/file /full/path/to/link

# Creates a hard link
ln /full/path/ln/original/file /full/path/to/link
        
{{ score }}
  # Creates a soft link from relative path
ln -sr somefile.txt /path/to/link
        
{{ score }}
  # Creates a soft link from a relative path
ln -s somefile.txt /path/to/link
        
{{ score }}
  # Create a soft link to some file in the current directory
ln -s /path/to/some/file .

# The soft link will have the same name as the file it points to.