bash link to file code example Example 1: create a symlink ln -s [/path/to/file] [/path/to/symlink] Example 2: symlink command ln -s source_file myfile