我有一个有根所有权的文件,
-rw-r--r-- 1 root staff 92229 Feb 6 10:51 oneFile
-rw-rw----@ 1 John staff 5242880 Feb 7 00:14 anotherFile如何将oneFile所有权和读写权限更改为与anotherFile相同?
发布于 2019-02-07 15:23:15
如果你是说在巴什终点站,这就是你要走的路:
sudo chmod --reference=anotherFile oneFile
sudo chown --reference=anotherFile oneFile来自人类chmod
CHMOD(1)
NAME
chmod - change file mode bits
SYNOPSIS
chmod [OPTION]... MODE[,MODE]... FILE...
chmod [OPTION]... OCTAL-MODE FILE...
chmod [OPTION]... --reference=RFILE FILE...https://askubuntu.com/questions/1116411
复制相似问题