ln command code example

Example 1: create a symlink

ln -s [/path/to/file] [/path/to/symlink]

Example 2: create symbolic link linux

$ ln -s file1 link1
#Example: ln -s /var/file_i_want_to_link /etc/symbolic_link_name

Example 3: ls command

ls command list computer files in a directory in Unix OS with next structure:
ls [OPTION]... [FILE]...
Examples:
ls -l #display all files in current directory with  (-l) long format.
ls -a /directory #display all hidden files in given directory that start with .

Example 4: ln -sf linux

#     Source                             Link
ln -s /home/jake/doc/test/2000/something /home/jake/xxx

Tags:

Misc Example