Skip to content Skip to sidebar Skip to footer

How to Make & Remove Symlink in Linux RHEL 7 Make Your Job Easier

ln - make links between files. In  the 1st form, create a link to TARGET with the name LINK_NAME.  In the 2nd form, create a link to TARGET in the current directory.  In the 3rd and 4th forms, create links to each TARGET in DIRECTORY. Create  hard links by default, symbolic links with --symbolic.  

By default, each destination (name of new link) should not already exist.  When creating hard links,  each  TARGET  must  exist.   Symbolic links  can  hold arbitrary text; if later resolved, a relative link is interpreted in relation to its parent directory.

Make symbolic link

to create a symbolic link you can follow my method below, this method is very simple and you can definitely do it too

# cd /home/kitsake/
# ln - s [source] [destination]
# ln -s /root/dota2/ ggwp

Make symbolic link
Make symbolic link

Makesure symbolic link

Make sure your symbolic link is actually created on your server and of course it can be used, you can see it by looking at the contents in the directory.

# pwd
# ll
# cd ggwp
# ll

Makesure symbolic link
Makesure symbolic link

Remove symbolic link

Unlink, Call the unlink function to remove the specified FILE.
# pwd
# ll
# unlink ggwp
# ll

Remove symbolic link
Remove symbolic link


Bangkit Ade Saputra
Bangkit Ade Saputra Hard-working professional with experience and a proven knowledge of operating system, server architecture and system configuration.

Post a Comment for "How to Make & Remove Symlink in Linux RHEL 7 Make Your Job Easier"