Saturday, 25 February 2023

RHCSA Exam Notes : Hard and Soft link in Unix/Linux

 Create Hard links:

Command:

The below command created hardlink called file1.txt for the existing file trial1.txt in /home/student

ln file1.txt /home/student/trial1.txt

Create Soft link:

Command:

The below command created soft link called file1.txt for the existing file trial1.txt in /home/student

ln -s file1.txt /home/student/trial1.txt


No comments:

Post a Comment