Linux でディレクトリへのハードリンクをはる方法はありますでしょうか?
man pageを確認すると、
text
1 -d, -F, --directory 2 allow the superuser to attempt to hard link directories 3 (note: will probably fail due to system restrictions, even 4 for the superuser) 5
という記述があります。
Debian 10.3で試してみましたが、以下のように失敗してしまいます。
bash
1root@user:/home/taro/tmp/# mkdir test 2root@user:/home/taro/tmp/# ln -d test test2 3ln: 'test2' から 'test' へのハードリンクの作成に失敗しました: 許可されていない操作です
何かライブラリを入れれば、ディレクトリへハードリンクをはることはできるのでしょうか?

バッドをするには、ログインかつ
こちらの条件を満たす必要があります。