How to Setup SymLinks(Soft & Hard Links) in Redhat Linux Server - Cloud Network

Networking | Support | Tricks | Troubleshoot | Tips

Buymecoffe

Buy Me A Coffee

Wednesday, September 3, 2014

How to Setup SymLinks(Soft & Hard Links) in Redhat Linux Server

SymLinks in Hard & Soft
###Symlinks###
Features:
 1. Provides shortcuts to files (including directories)
 2. Provides hard links to inode (file system) locations

Soft Links:-
 1. ln -s source_file target
  a. ln -s ./regextest.pl lastscript.pl

Note: Soft links may span multiple file systems/hard drives
Note: Symlink count is NOT increased when using soft links

 2.  ln -s /home/linuxcbt/testRH5/regextest.pl . - this will symlink (soft) to the /boot file system

Note: With soft links, if you change the name or location of the source file, you will break ALL of the symlinks (soft).

Hard Links:-
 Features:
  1. The ability to reference the same inode/hard drive location from multiple   places within the same file system
   a. ln source target
      ln regextest.pl ./testhardregextest.pl - creates a hard link


Thanking You
Hope U Like it....

Oracle Linux 7

Fedora 20 in Virtual box

Nagios 4.0.7

Roboform in linux

Ubuntu server 12.04
Zimbra Desktop 7