linux文件权限命令_Linux文件权限命令能力问题和解答

linux文件权限命令

This section contains Aptitude Questions and Answers on File Permissions Commands.

本节包含有关文件权限命令的能力问题和解答。

1) Which of the following are the types of file owners in the Linux Operating System?
  1. User

  2. Group

  3. Other

  4. None of the above

Options:

  1. A and B

  2. C and D

  3. A, B, and C

  4. D

Answer & Explanation

Correct answer: 3
A, B, and C

User, Owner, and Other are the types of file owners used in the Linux operating system.

1)以下哪种是Linux操作系统中的文件所有者类型?
  1. 用户

  2. 其他

  3. 以上都不是

选项:

  1. A和B

  2. C和D

  3. A,B和C

  4. d

答案与解释

正确答案:3
A,B和C

用户,所有者和其他是Linux操作系统中使用的文件所有者的类型。

2) Which exact command is used to see the permissions of a file in the Linux operating system?
  1. perms

  2. file -perm

  3. ls -l

  4. ls -perm

Answer & Explanation

Correct answer: 3
ls -l

The ls -l command is used to display permissions and other information regarding files and directories.

2)使用哪个确切命令查看Linux操作系统中文件的权限?
  1. 烫发

  2. 文件-perm

  3. ls -l

  4. ls-烫发

答案与解释

正确答案:3
ls -l

ls -l命令用于显示权限和有关文件和目录的其他信息。

3) How can we differentiate between file and directory from the output of ls command?
  1. Directories are mentioned in capital letters in the output of ls command.

  2. The d character is used before permissions in the output of ls command.

  3. Both of the above

  4. None of the above

Answer & Explanation

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.

3)如何从ls命令的输出中区分文件和目录?
  1. 目录在ls命令的输出中以大写字母提及。

  2. 在ls命令的输出中,在许可之前使用d字符。

  3. 以上两者

  4. 以上都不是

答案与解释

正确答案:2
在ls命令的输出中,在许可之前使用d字符。

在ls命令的输出中,在许可之前使用d字符。

4) Which of the following type of permissions are used for files and directories in the Linux Operating System?
  1. Read

  2. Write

  3. Execute

  4. All of the above

Options:

  1. A and B

  2. B and C

  3. A and C

  4. D

Answer & Explanation

Correct answer: 4
D

There are read, write, and execute permission can be assigned to the files and directories.

4)Linux操作系统中的文件和目录使用以下哪种权限?
  1. 执行

  2. 上述所有的

选项:

  1. A和B

  2. B和C

  3. A和C

  4. d

答案与解释

正确答案:4
d

可以将读取,写入和执行权限分配给文件和目录。

5) Which of the following character is used for "execute" permissions in the Linux operating system?
  1. e

  2. x

  3. E

  4. None

Answer & Explanation

Correct answer: 2
x

The x character is used for "execute" permissions in the Linux operating system.

5)以下哪个字符用于Linux操作系统中的“执行”权限?
  1. Ë

  2. X

  3. Ë

  4. 没有

答案与解释

正确答案:2
X

x字符用于Linux操作系统中的“执行”权限。

6) Can we assign permissions to all types of owners of a specified file in a single command?
  1. Yes

  2. No

Answer & Explanation

Correct answer: 1
Yes

Yes, we can assign permissions to all types of owners of a specified file in a single command.

6)是否可以通过单个命令将权限分配给指定文件的所有类型的所有者?
  1. 没有

答案与解释

正确答案:1

是的,我们可以在一个命令中将权限分配给指定文件的所有类型的所有者。

7) Which of the following command is used to change the permissions of a file?
  1. chperm

  2. chmod

  3. chown

  4. permission

Answer & Explanation

Correct answer: 2
chmod

The chmod command is used to assign and change the permission of a file.

7)以下哪个命令用于更改文件的权限?
  1. 芹菜

  2. chmod

  3. wn

  4. 允许

答案与解释

正确答案:2
chmod

chmod命令用于分配和更改文件的权限。

8) Which of the following command is used to change the group owner of a file?
  1. group

  2. chgroup

  3. chown

  4. chgrp

Answer & Explanation

Correct answer: 4
chgrp

The chgrp is used to change the group owner of a file.

8)以下哪个命令用于更改文件的组所有者?
  1. chgroup

  2. wn

  3. chgrp

答案与解释

正确答案:4
chgrp

chgrp用于更改文件的组所有者。

9) Which of the following command is used to change the owner of a file?
  1. owner

  2. chgown

  3. chown

  4. changeowner

Answer & Explanation

Correct answer: 3
chown

The chown is used to change the owner of a file.

9)以下哪个命令用于更改文件的所有者?
  1. 所有者

  2. chgown

  3. wn

  4. 变更拥有者

答案与解释

正确答案:3
wn

chown用于更改文件的所有者。

10) Which of the following character is used to identify the symbolic link file in the output of ls command?
  1. s

  2. c

  3. l

  4. _

Answer & Explanation

Correct answer: 3
l

The l character is used to identify the symbolic link file in the output of the ls command.

10)以下哪个字符用于标识ls命令输出中的符号链接文件?
  1. s

  2. C

  3. _

答案与解释

正确答案:3

l字符用于在ls命令的输出中标识符号链接文件。

11) Which of the following modes are used to assign permission to the file in the Linux operating system?
  1. Numeric mode

  2. Symbolic mode

  3. Both

  4. None

Answer & Explanation

Correct answer: 3
Both

In the Linux operating system, both numeric and symbolic modes are used to assign permission to the file.

11)以下哪种模式用于在Linux操作系统中为文件分配权限?
  1. 数值模式

  2. 符号模式

  3. 没有

答案与解释

正确答案:3

在Linux操作系统中,数字和符号模式均用于为文件分配权限。

12) Which of the following number is used for "read" permission in the Linux operating system?
  1. 4

  2. 2

  3. 1

  4. 0

Answer & Explanation

Correct answer: 1
4

The number 4 is used for "read" permission.

12)以下哪个数字在Linux操作系统中用于“读取”许可?
  1. 4

  2. 2

  3. 1个

  4. 0

答案与解释

正确答案:1
4

数字4用于“读取”权限。

13) If we want to assign read and execute permission to the file then which number is used in the chmod command to assign permission?
  1. 5

  2. 6

  3. 7

  4. 3

Answer & Explanation

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.

13)如果我们要为文件分配读取和执行权限,那么在chmod命令中使用哪个数字来分配权限?
  1. 5

  2. 6

  3. 7

  4. 3

答案与解释

正确答案:1
5

在chmod命令中使用数字5分配读取和执行许可权,因为这里我们将4用于“读取”,将1用于“执行”,然后将(4 + 1)等于5,用于“读取”和“执行”允许。

14) Which exact command is used to assign all read, write and execute permission to all owners of a file?
  1. chmod 7 <file name>

  2. chmod 777 <file name>

  3. chown 777 <file name>

  4. chgrp 777 <file name>

Answer & Explanation

Correct answer: 2
chmod 777 <file name>

14)使用哪个确切命令将所有读取,写入和执行权限分配给文件的所有所有者?
  1. chmod 7 <文件名>

  2. chmod 777 <文件名>

  3. chown 777 <文件名>

  4. chgrp 777 <文件名>

答案与解释

正确答案:2
chmod 777 <文件名>

15) Which of the following notations are correct for owners of a file?
  1. a

  2. o

  3. u

  4. g

Options:

  1. A and B

  2. A, B, and C

  3. A, B, and D

  4. A, B, C, and D

Answer & Explanation

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.

15)以下哪个符号对于文件的所有者是正确的?
  1. 一个

  2. Ø

  3. ü

  4. G

选项:

  1. A和B

  2. A,B和C

  3. A,B和D

  4. A,B,C和D

答案与解释

正确答案:4
A,B,C和D

所有给定的选项都是正确的表示法,用于文件的所有者,此处u表示用户, g表示组, o表示其他, a表示所有。

16) Which of the following operator is used to set and override the permission of a file in chmod command?
  1. +

  2. =

  3. *

  4. -

Answer & Explanation

Correct answer: 2
=

Here, = operator is used to set and override the permission of a file in the chmod command.

16)以下哪个运算符用于设置和覆盖chmod命令中的文件权限?
  1. +

  2. =

  3. *

  4. --

答案与解释

正确答案:2
=

在这里, =运算符用于在chmod命令中设置和覆盖文件的权限。

17) Which exact command is used, when we want to add execute permission to all owners of the file?
  1. chmod all x <file name>

  2. chmod ax <file name>

  3. chmod a+x <file name>

  4. None of the above

Answer & Explanation

Correct answer: 3
chmod a+x <file name>

17)当我们要向文件的所有所有者添加执行权限时,使用哪个确切命令?
  1. chmod全部x <文件名>

  2. chmod ax <文件名>

  3. chmod a + x <文件名>

  4. 以上都不是

答案与解释

正确答案:3
chmod a + x <文件名>

18) Which option is used to assign permission to directory recursively?
  1. -r

  2. -R

  3. -REC

  4. -rec

Answer & Explanation

Correct answer: 2
-R

The -R option is used to assign permission to directory recursively.

18)使用哪个选项递归分配目录权限?
  1. -r

  2. -R

  3. -记录

  4. -rec

答案与解释

正确答案:2
-R

-R选项用于递归分配目录权限。

19) Which exact command is used, remove write, and execute permission from a file?
  1. chmod w-x <file name>

  2. chmod x-w <file name>

  3. chmod –we <file name>

  4. chmod –wx <file name>

Answer & Explanation

Correct answer: 4
chmod –wx <file name>

19)使用哪个确切命令,删除文件并执行文件权限?
  1. chmod wx <文件名>

  2. chmod xw <文件名>

  3. chmod –we <文件名>

  4. chmod –wx <文件名>

答案与解释

正确答案:4
chmod –wx <文件名>

20) Which command is used to see what permissions will be provided to the newly created file by default?
  1. default

  2. unmask

  3. permissions

  4. defperm

Answer & Explanation

Correct answer: 2
unmask

The unmask command is used to see what permissions will be provided to the newly created file by default.

20)哪个命令用于查看默认情况下将为新创建的文件提供哪些权限?
  1. 默认

  2. 揭露

  3. 权限

  4. 精油

答案与解释

正确答案:2
揭露

unmask命令用于查看默认情况下将为新创建的文件提供哪些权限。

翻译自: https://www.includehelp.com/linux/file-permissions-commands-aptitude-questions-and-answers.aspx

linux文件权限命令

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值