这就像我使用的(更多的变量)。我现在正在尝试chown user:user {},然后chmod 640 {},所有这些都是在硬链接创建之后,在硬链接上。但是我所尝试的似乎都不起作用。
find . -name "test" -exec ln {} /path/ \;就像这样:
find . -name "test" -exec ln {} /path/ | chown user:user /path/{} | chmod 640 /path/{} \;发布于 2014-11-10 07:46:56
不知道你想做什么,但据我所知,*nix上不允许硬链接到目录,所以我猜你想要一个符号链接,从你编码所有权和权限更改的方式来看,你似乎想让这个链接在/path中登陆:
sudo find . -name "test" -exec sh -c "ln -s /path/ /path/{}; chown user:user /path/{}; chmod 640 /path/{}" \;
https://stackoverflow.com/questions/26834299
复制相似问题