Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
如果我知道 file1 和 file2 是相同的(它们是重复的),无论如何我可以用指向 file1 的硬链接替换 file2 吗?我试着用
ln file2 file1
它是否正确?谢谢。
ln -f file2 file1
-f, --force remove existing destination files