Unix - What are links and symbolic links in UNIX file system?

What are links and symbolic links in UNIX file system?

A link is a pointer or reference to another file. A directory in UNIX has a list of file names and their corresponding inodes. A directory entry can have an Inode pointing to another file.

This is a hard link. When a hard link is made, then the i-numbers of two different directory file entries point to the same inode.

A symbolic link or a soft link is a special type of file containing links or references to another file or directory in the form of a path. The path may be relative or absolute. To create a symbolic link, following command is used:
Ln –s target link_name

Here, target is the path and link_name is the name of the link. Symbolic links can be created to create a file system based on different views of the user.

What are links and symbolic links in UNIX file system?

Link is a utility program in UNIX which establishes a hard link from one directory to another directory. A hard link is a reference to a directory or to file on storage media. A symbolic link is a type of file. It contains references to another file directory in the form of absolute or a relative path.
Unix - Explain fork() system call.
Explain fork() system call - fork() system call is used to create processes........
Unix - What is a zombie?
What is a zombie? - A zombie is a process which is completed the execution and still available in the process table........
Unix - How do you create special files like named pipes and device files?
How do you create special files like named pipes and device files? - Using the mknod command, special files can be created......
Post your comment