UNIX – Hard and Simple links

Hello again!

Today, we are going to learn about hard or simple links on a POSIX system.

What is a hard link?

A hard link is used by a root mode. Be careful with EOACCESS. We recommend soft links, this links are user mode.

What is a user mode?
A user mode is a link made by our account on the system. With soft link, we can build several links of the original binary or text file.

Example:
sudo ln -s /home/user/text.txt user1.txt

This example is very back because can be an EOACCESS error.

Soft link:
ln -s /home/user/text.txt /home/user/text1.txt

With soft links we can make more links, it’s easier.

Comments

Leave a Reply

Your email address will not be published. Required fields are marked *

4 × four =

coder by Gleentech
Privacy Overview

This website uses cookies so that we can provide you with the best user experience possible. Cookie information is stored in your browser and performs functions such as recognising you when you return to our website and helping our team to understand which sections of the website you find most interesting and useful.