Q.61 How to create symbolic link?
You need to use the ln command. It is a
standard Unix / Linux / BSD command to create links to files. There are two
types of links under UNIX, hard and soft link:
To create a symbolic link, enter:
$ ln -s {/path/to/file-name} {link-name}
$ ln -s /shared/sales/data/file.txt sales.data.txt
$ vi sales.data.txt
$ ls -l sales.data.txt
To create hard link, enter (without the -s option):
$ ln {file.txt} {hard-link}
$ ln /tmp/file link-here
No comments:
Post a Comment