从ln的手册页中: -d, -F, --directory allow the superuser to attempt to hard link directories (note: will probably fail due to system restrictions, even for the superuser) 是否有任何文件系统驱动程序实际上允许这样做,还是唯一的选择mount --bind <src> <dest>?还是这种行为被内核阻止,甚至还没有到达文件系统特定的驱动程序? 注意:我实际上并不打算在任何计算机上执行此操作,只是出于好奇。
我有一个媒体服务器,其文件夹名为Series。(/media/Expansion2/Series/) 在其中,我有(惊讶!)电视连续剧。这些只是节目名称,例如,/media/Expansion2/Series/The Big Bang Theory/ 在每个节目的文件夹内(这是问题所在),我有季节文件夹。我目前混合了以下两个约定(可能还有其他几个约定): /media/Expansion2/Series/The Big Bang Theory/The Big Bang Theory Season 1 /media/Expansion2/Series/The Big Bang Theory/Season 2 最后,我想将所有文件夹重命名为just Season #。 作为正则表达式,我可能会说类似 s/.*(Season \d)/$1 仅适用于文件夹,不适用于文件。我可能还应该提到,这是用于大约50多个show sub文件夹的,因此它需要从/media/Expansion2/Series/级别开始并研究每个系列:)