Linux文件命令能力问题和解答

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

本节包含有关Linux文件命令的 Aptitude问题和解答。

1) There are the following statements that are given below, which of them are correct about files in Linux?
  1. The file can be a text, image, audio, and video file.

  2. A device is also represented as a file in the Linux operating system.

  3. A directory is also a file.

  4. Disk partitions are also represented as a file.

Options:

  1. A and B

  2. A and C

  3. A, B, C, and D

  4. B, C, and D

Answer & Explanation

Correct answer: 3
A, B, C, and D

All given statements are correct about files in Linux Operating System.

1)下面给出了以下语句,其中哪些对于Linux中的文件是正确的?
  1. 该文件可以是文本,图像,音频和视频文件。

  2. 设备在Linux操作系统中也表示为文件。

  3. 目录也是文件。

  4. 磁盘分区也表示为文件。

选项:

  1. A和B

  2. A和C

  3. A,B,C和D

  4. B,C和D

答案与解释

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

所有给定的语句对于Linux操作系统中的文件都是正确的。

2) There are the following statements that are given below, which of them are correct types of files in Linux?
  1. Executable file

  2. Device file

  3. Named pipe file

  4. Block file

Options:

  1. A and B

  2. C and D

  3. A, B, and C

  4. A, B, C, and D

Answer & Explanation

Correct answer: 4
A, B, C, and D

All given options are the correct types of files.

2)下面给出了以下语句,其中哪些是Linux中正确的文件类型?
  1. 可执行文件

  2. 设备文件

  3. 命名管道文件

  4. 阻止文件

选项:

  1. A和B

  2. C和D

  3. A,B和C

  4. A,B,C和D

答案与解释

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

所有给定的选项都是正确的文件类型。

3) There are the following statements that are given below, which of them are correct about the Linux File System?
  1. File System is a layer in the Linux operating system, which is used to control the management of storage data.

  2. It provides the arrangement of files in the disk storage.

  3. It is used to manage information about files like name, size, creation, and modification time.

  4. Linux File System is the software that runs only on Intel architecture.

Options:

  1. A and B

  2. C and D

  3. A, B, and C

  4. A, B, C, and D

Answer & Explanation

Correct answer: 3
A, B, and C

Statements A, B, and C are correct about the Linux File System.

3)下面给出了以下语句,其中哪些对于Linux File System是正确的?
  1. 文件系统是Linux操作系统中的一层,用于控制存储数据的管理。

  2. 它提供了磁盘存储中文件的排列方式。

  3. 它用于管理有关文件的信息,例如名称,大小,创建和修改时间。

  4. Linux File System是仅在Intel体系结构上运行的软件。

选项:

  1. A和B

  2. C和D

  3. A,B和C

  4. A,B,C和D

答案与解释

正确答案:3
A,B和C

关于Linux文件系统的语句A,B和C是正确的。

4) Can we create a file in the Linux operating system without any file extension?
  1. Yes

  2. No

Answer & Explanation

Correct answer: 1
Yes

Yes, we can create files in Linux without any extension.

4)我们可以在Linux操作系统中创建没有任何文件扩展名的文件吗?
  1. 没有

答案与解释

正确答案:1

是的,我们可以在Linux中创建文件而无需任何扩展名。

5) In the Linux File System, what is used to separate components of paths?
  1. Forward Slash ('/')

  2. Backward Slash ('\')

Answer & Explanation

Correct answer: 1
Forward Slash ('/')

In the Linux File System, the forward slash is used to separate components of a path, like "/home/user/".

5)在Linux文件系统中,什么用于分隔路径的组成部分?
  1. 正斜杠('/')

  2. 反斜杠('\')

答案与解释

正确答案:1
正斜杠('/')

在Linux文件系统中,正斜杠用于分隔路径的各个组成部分,例如“ / home / user /”。

6) In Linux File System, which symbol is used before filename in case of hidden files?
  1. #

  2. $

  3. Dot (.)

  4. @

Answer & Explanation

Correct answer: 3
Dot (.)

The dot (.) is used before filename in hidden files.

6)在Linux文件系统中,如果是隐藏文件,在文件名前使用哪个符号?
  1. $

  2. 点(。)

  3. @

答案与解释

正确答案:3
点(。)

在隐藏文件中,在文件名之前使用点(。)。

7) What are the correct types of file systems used in the Linux operating system?
  1. Ext3

  2. Ext4

  3. JFS

  4. XFS

Options:

  1. A and B

  2. C and D

  3. A, B, and C

  4. A, B, C, and D

Answer & Explanation

Correct answer: 4
A, B, C, and D

All given options are the correct types of Linux File System.

7)Linux操作系统中使用的文件系统的正确类型是什么?
  1. 分机3

  2. 分机4

  3. JFS

  4. XFS文件

选项:

  1. A和B

  2. C和D

  3. A,B和C

  4. A,B,C和D

答案与解释

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

所有给定的选项都是正确的Linux文件系统类型。

8) What is the full form of JFS?
  1. Just File System

  2. Journaled File System

  3. Joint File System

  4. Joker File System

Answer & Explanation

Correct answer: 2
Journaled File System

The "JFS" stands for "Journaled File System".

8)JFS的完整形式是什么?
  1. 公正文件系统

  2. 日志文件系统

  3. 联合文件系统

  4. 小丑文件系统

答案与解释

正确答案:2
日志文件系统

“ JFS”代表“日志文件系统”

9) There are the following statements that are given below, which of them are correct about Btrfs File System in Linux?
  1. This file system does not use for production purposes.

  2. It is used for fault tolerance.

  3. It is used for extensive storage configuration.

  4. It is used the extended version of JFS.

Options:

  1. A and B

  2. C and D

  3. A, B, and C

  4. A, B, C, and D

Answer & Explanation

Correct answer: 3
A, B, and C

Statements A, B, and C are correct about Btrfs File System.

9)下面给出了以下语句,其中哪些对于Linux中的Btrfs文件系统是正确的?
  1. 该文件系统不用于生产目的。

  2. 用于容错。

  3. 它用于广泛的存储配置。

  4. 它是JFS的扩展版本。

选项:

  1. A和B

  2. C和D

  3. A,B和C

  4. A,B,C和D

答案与解释

正确答案:3
A,B和C

关于Btrfs文件系统,语句A,B和C是正确的。

10) Which of the following commands are used to create files in the Linux Operating System?
  1. cat

  2. echo

  3. touch

  4. printf

Options:

  1. A and B

  2. C and D

  3. A, B, and C

  4. A, B, C, and D

Answer & Explanation

Correct answer: 4
A, B, C, and D

All given commands are used to create files in the Linux Operating System.

10)以下哪个命令用于在Linux操作系统中创建文件?
  1. 回声

  2. 触摸

  3. 打印

选项:

  1. A和B

  2. C和D

  3. A,B和C

  4. A,B,C和D

答案与解释

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

所有给定的命令均用于在Linux操作系统中创建文件。

11) There are the following statements that are given below, which of them are correct about touch command in Linux?
  1. It is used to create empty files.

  2. It is used to update the timestamp of the existing file.

  3. It is used to write formatted data into the file.

  4. It is used to view the content of the file.

Options:

  1. A and B

  2. B and C

  3. A, B, and C

  4. A, B, C, and D

Answer & Explanation

Correct answer: 1
A and B

Statements A and B are correct about touch command.

11)下面给出了以下语句,其中哪些对于Linux中的touch命令是正确的?
  1. 它用于创建空文件。

  2. 它用于更新现有文件的时间戳。

  3. 它用于将格式化的数据写入文件。

  4. 它用于查看文件的内容。

选项:

  1. A和B

  2. B和C

  3. A,B和C

  4. A,B,C和D

答案与解释

正确答案:1
A和B

陈述A和B关于触摸命令是正确的。

12) What are the popular editors are used in the Linux operating system?
  1. Vi

  2. Vim

  3. Gedit

  4. Nano

Options:

  1. A and B

  2. C and D

  3. A, B, and C

  4. A, B, C, and D

Answer & Explanation

Correct answer: 4
A, B, C, and D

All given options are popular editors are used in the Linux operating system.

12)Linux操作系统中使用哪些流行的编辑器?
  1. Vim

  2. Gedit

  3. 奈米

选项:

  1. A和B

  2. C和D

  3. A,B和C

  4. A,B,C和D

答案与解释

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

所有给定的选项都是在Linux操作系统中使用的流行编辑器。

13) Which command is used to check the type of file?
  1. type

  2. file

  3. filetype

  4. filetypes

Answer & Explanation

Correct answer: 2
file

The file command is used to check the type of files.

13)使用哪个命令检查文件类型?
  1. 类型

  2. 文件

  3. 文件类型

  4. 文件类型

答案与解释

正确答案:2
文件

file命令用于检查文件类型。

14) Which exact command is used to change the only modification time of a file in the Linux operating system?
  1. touch -m

  2. touch -k

  3. touch -p

  4. touch –l

Answer & Explanation

Correct answer: 1
touch -m

The touch -m is used to change the only modification time of a file in the Linux operating system.

14)在Linux操作系统中,使用哪个确切的命令来更改文件的唯一修改时间?
  1. 触摸-m

  2. 触摸-k

  3. 触摸-p

  4. 触摸–l

答案与解释

正确答案:1
触摸-m

touch -m用于更改Linux操作系统中文件的唯一修改时间。

15) Which command is used to check the access and modification time of a file in Linux?
  1. check

  2. filetimes

  3. state

  4. file

Answer & Explanation

Correct answer: 3
state

The state command is used to check the access and modification time of a file in Linux.

15)在Linux中,哪个命令用于检查文件的访问和修改时间?
  1. 检查

  2. 文件时间

  3. 文件

答案与解释

正确答案:3

state命令用于检查Linux中文件的访问和修改时间。

16) Which of the following redirection operator is used to append the content in a file?
  1. >

  2. <

  3. >>

  4. <>

Answer & Explanation

Correct answer: 3
>>

The >> operator is used to append the content in a file.

16)以下哪个重定向操作符用于将内容附加到文件中?
  1. >

  2. <

  3. >>

  4. <>

答案与解释

正确答案:3
>>

>>运算符用于将内容附加到文件中。

17) Which command is used to print file content in reverse order line wise, it means, the last line will print first and then print the second last line and so on?
  1. reverse

  2. tac

  3. cat

  4. gedit

Answer & Explanation

Correct answer: 2
tac

The tac command is used to print file content in reverse order line wise.

17)哪个命令用于按行反序打印文件内容,这意味着最后一行将首先打印,然后再打印最后第二行,依此类推?
  1. 逆转

  2. TAC

  3. Gedit

答案与解释

正确答案:2
TAC

tac命令用于以反顺序逐行打印文件内容。

18) Which command is used to view the specified lines from the start of a file?
  1. start

  2. head

  3. beg

  4. first

Answer & Explanation

Correct answer: 2
head

The head command is used to view the specified lines from the start of a file.

18)使用哪个命令从文件开头查看指定的行?
  1. 开始

  2. 第一

答案与解释

正确答案:2

head命令用于从文件开头查看指定的行。

19) By default, how many last lines shown by tail command?
  1. 5

  2. 8

  3. 10

  4. 12

Answer & Explanation

Correct answer: 3
10

By default, the tail command is used to display 10 last lines of a file.

19)默认情况下,tail命令显示的最后几行是多少?
  1. 5

  2. 8

  3. 10

  4. 12

答案与解释

正确答案:3
10

默认情况下, tail命令用于显示文件的最后10行。

20) Which of the following commands are used to view the content of file screen wise?
  1. more

  2. less

  3. cat

  4. tac

Options:

  1. A and B

  2. C and D

  3. A and C

  4. B and C

Answer & Explanation

Correct answer: 1
A and B

The more and less command is used to view the content of file screen wise, because if the file is large, the scroll bar is used in case of cat command.

20)以下哪个命令用于明智地查看文件屏幕的内容?
  1. 更多

  2. TAC

选项:

  1. A和B

  2. C和D

  3. A和C

  4. B和C

答案与解释

正确答案:1
A和B

更多和更少的命令用于明智地查看文件屏幕的内容,因为如果文件很大,则在使用cat命令时将使用滚动条。

21) Which command is used to remove a file?
  1. remove

  2. rm

  3. rmfile

  4. delete

Answer & Explanation

Correct answer: 2
rm

The rm command is used to remove the file.

21)使用哪个命令删除文件?
  1. 去掉

  2. R M

  3. rm文件

  4. 删除

答案与解释

正确答案:2
R M

rm命令用于删除文件。

22) Which command is used to rename a file?
  1. rename

  2. ren

  3. name

  4. None of the above

Answer & Explanation

Correct answer: 1
rename

The rename command is used to rename the file.

22)使用哪个命令来重命名文件?
  1. 改名

  2. ren

  3. 名称

  4. 以上都不是

答案与解释

正确答案:1
改名

重命名命令用于重命名文件。

23) Which command is used to copy a file from one location to another location?
  1. copy

  2. copyfile

  3. cp

  4. None of the above

Answer & Explanation

Correct answer: 3
cp

The cp command is used to copy a file from one location to another location.

23)使用哪个命令将文件从一个位置复制到另一位置?
  1. 复制

  2. 拷贝文件

  3. cp

  4. 以上都不是

答案与解释

正确答案:3
cp

cp命令用于将文件从一个位置复制到另一位置。

24) Which command is used to cut a file from one location and paste to the other location?
  1. cut

  2. ct

  3. move

  4. mv

Answer & Explanation

Correct answer: 4
mv

The mv command is used to cut a file from one location and paste it to the other location.

24)使用哪个命令从一个位置剪切文件并粘贴到另一位置?
  1. ct

  2. 移动

  3. MV

答案与解释

正确答案:4
MV

mv命令用于从一个位置剪切文件并将其粘贴到另一位置。

25) Sometimes can we use the mv command to rename a file or directory?
  1. Yes

  2. No

Answer & Explanation

Correct answer: 1
Yes

Yes, it can be done.

25)有时我们可以使用mv命令重命名文件或目录吗?
  1. 没有

答案与解释

正确答案:1

是的,可以做到。

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

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

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

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

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值