改动symbol link的owner

当/home/jenkins文件夹空间不足的时候,能够先查看哪个文件夹在较大的磁盘分区上,然后将jenkins文件夹移动过去

最后创建/home/jenkins link到新位置。

这时候须要改动symbol link的Owner,须要例如以下命令:

chown -h jenkins:jenkins /home/jenkins

几个注意点:

1. -h 參数必须

2. /home/jenkins不能用相对路径

3./home/jenkins后面不能接斜线




原文地址:https://www.cnblogs.com/mfrbuaa/p/4001724.html