我有一个包含以下内容的文件夹。 我想改变一个primefaces事务中的符号链接而不删除它。
drwxr-xr-x 9 root root 4096 Apr 10 13:47 2012-03-19 drwxr-xr-x 9 root root 4096 Apr 10 13:44 2012-04-10 lrwxrwxrwx 1 root root 10 Mar 19 15:28 current -> 2012-03-19
我曾经想过以下事情可以做到:
# ln -sf 2012-04-10 current
但是,这并不需要。 任何帮助是极大的赞赏!
尝试以下
ln -sfn 2012-04-10 current
原因
-n, --no-dereference treat destination that is a symlink to a directory as if it were a normal file