cancel
Showing results for 
Search instead for 
Did you mean: 
cipid2001_linux
Mission Specialist
Mission Specialist
  • 1,091 Views

RH124 - ch03s11 Lab Environment - error to create hard link to a directory

Jump to solution

Error when trying to create hard link for a directory "hard link not allowed for directory" - step 12 from Chapter 03 S11 "Manage files from command line"

cipid2001_linux_0-1695466117201.png

 

0 Kudos
1 Solution

Accepted Solutions
laurpaum
Flight Engineer
Flight Engineer
  • 1,069 Views

The lab asks you to create season1_project_plan.odf and season2_project_plan.odf as empty files, not directories. Fix this and the ln command will work as expected.

You can't create hard links to directories (the main reason being it could create a filesystem loop if you hardlink a directory to one of its parent directories).

View solution in original post

1 Reply
laurpaum
Flight Engineer
Flight Engineer
  • 1,070 Views

The lab asks you to create season1_project_plan.odf and season2_project_plan.odf as empty files, not directories. Fix this and the ln command will work as expected.

You can't create hard links to directories (the main reason being it could create a filesystem loop if you hardlink a directory to one of its parent directories).

Join the discussion
You must log in to join this conversation.