ln -sf source_file target_file 即使 source_file 不存在也会成功。
ln -sf source_file target_file
ln -f source_file target_file 另一方面,正如预期的那样失败。
ln -f source_file target_file
如何在没有首先明确测试文件存在的情况下在第一种情况下给出错误(即不存在[[ -e source_file ]] && ln -sf source_file target_file)
[[ -e source_file ]] && ln -sf source_file target_file
symlink ln
ln ×1
symlink ×1