
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
- 1,355 Views
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"
Accepted Solutions

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
- 1,333 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).

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
- 1,334 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).