linux文件权限命令
This section contains Aptitude Questions and Answers on File Permissions Commands.
本节包含有关文件权限命令的能力问题和解答。
User
Group
Other
None of the above
Options:
Correct answer: 3
A, B, and C
User, Owner, and Other are the types of file owners used in the Linux operating system.
用户
组
其他
以上都不是
选项:
正确答案:3
A,B和C
用户,所有者和其他是Linux操作系统中使用的文件所有者的类型。
Correct answer: 3
ls -l
The ls -l command is used to display permissions and other information regarding files and directories.
Directories are mentioned in capital letters in the output of ls command.
The d character is used before permissions in the output of ls command.
Correct answer: 2
The d character is used before permissions in the output of ls command.
The d character is used before permissions in the output of ls command.
正确答案:2
在ls命令的输出中,在许可之前使用d字符。
在ls命令的输出中,在许可之前使用d字符。
Read
Write
Execute
All of the above
Options:
Correct answer: 4
D
There are read, write, and execute permission can be assigned to the files and directories.
Correct answer: 2
x
The x character is used for "execute" permissions in the Linux operating system.
Correct answer: 1
Yes
Yes, we can assign permissions to all types of owners of a specified file in a single command.
Correct answer: 2
chmod
The chmod command is used to assign and change the permission of a file.
Correct answer: 4
chgrp
The chgrp is used to change the group owner of a file.
Correct answer: 3
chown
The chown is used to change the owner of a file.
Correct answer: 3
l
The l character is used to identify the symbolic link file in the output of the ls command.
Correct answer: 3
Both
In the Linux operating system, both numeric and symbolic modes are used to assign permission to the file.
Correct answer: 1
4
The number 4 is used for "read" permission.
Correct answer: 1
5
The number 5 is used in chmod command to assign read and execute permission, because here we use 4 for "read" and 1 for "execute" then (4+1) that is 5, is used for "read" and "execute" permission.
正确答案:1
5
在chmod命令中使用数字5分配读取和执行许可权,因为这里我们将4用于“读取”,将1用于“执行”,然后将(4 + 1)等于5,用于“读取”和“执行”允许。
Correct answer: 2
chmod 777 <file name>
正确答案:2
chmod 777 <文件名>
a
o
u
g
Options:
Correct answer: 4
A, B, C, and D
All given options are correct notations are used for owners of a file, here u for the user, g for group, o for others, and a for all.
一个
Ø
ü
G
选项:
正确答案:4
A,B,C和D
所有给定的选项都是正确的表示法,用于文件的所有者,此处u表示用户, g表示组, o表示其他, a表示所有。
Correct answer: 2
=
Here, = operator is used to set and override the permission of a file in the chmod command.
Correct answer: 3
chmod a+x <file name>
正确答案:3
chmod a + x <文件名>
Correct answer: 2
-R
The -R option is used to assign permission to directory recursively.
Correct answer: 4
chmod –wx <file name>
正确答案:4
chmod –wx <文件名>
Correct answer: 2
unmask
The unmask command is used to see what permissions will be provided to the newly created file by default.
翻译自: https://www.includehelp.com/linux/file-permissions-commands-aptitude-questions-and-answers.aspx
linux文件权限命令