我应该在这个文件中创建一个文件存档。当我创建它时,我
应使用 chmod
以便存档应具有 757 权限。
我这样做了但失败了,这是对还是错? :
$ mkdir file1
$ cd file1
# here i should create an archive but how i dont know
$ chmod 757 archivename
最佳答案
首先使用触摸命令:
bash-4.3$ mkdir a
bash-4.3$ cd a
bash-4.3$ pwd
/home/cg/root/a
bash-4.3$ touch a.txt
bash-4.3$ chmod 757 a.txt
bash-4.3$ ls -lrt
total 0
-rwxr-xrwx 1 18207 18207 0 May 4 11:29 a.txt
关于linux - 如何创建存档并对其进行 chmod,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/37026338/