Free Domain Sign up for PayPal and start accepting credit card payments instantly.

Thursday, October 21, 2010

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/Linuxtutorial/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

No comments:

Post a Comment