linux过滤器命令
This section contains Aptitude Questions and Answers on Linux Filter Commands.
本节包含有关Linux筛选器命令的 Aptitude问题和解答。
The piping the process which is used to redirect the output of one command to another command as an input.
We use the pipe (|) operator to perform piping.
The piping is not supported in Linux; it works only in the UNIX operating system.
None of the above
Options:
Correct answer: 3
A and B
Statements A and B are correct about piping in the Linux operating system.
将用于将一个命令的输出重定向到另一命令作为输入的过程进行管道传输。
我们使用管道(|)运算符执行管道。
Linux不支持管道。 它仅在UNIX操作系统中有效。
以上都不是
选项:
正确答案:3
A和B
关于Linux操作系统中的管道,语句A和B是正确的。
The cut command is used to select a specific column of a file.
We can use a delimiter in the cut command to separate the columns of a file.
We cannot use a delimiter in the cut command.
The cut command is used to move files from one location to another location.
Options:
Correct answer: 3
A and B
Statements A and B are correct about the cut command.
cut命令用于选择文件的特定列。
我们可以在cut命令中使用定界符来分隔文件的列。
我们不能在cut命令中使用定界符。
cut命令用于将文件从一个位置移动到另一位置。
选项:
正确答案:3
A和B
语句A和B关于cut命令是正确的。
Hyphen
Space
Slash
All of the above
Options:
Correct answer: 4
D
A delimiter can be a hyphen, space, and slash.
Correct answer: 2
-d
The "-d" option is used to mention delimiter in the cut command.
This command is used to filter the content of the file.
This command is not used to filter the content of the file.
We can search the specified word in the file using grep command.
There is no grep command that exists in the Linux operating system.
Options:
Correct answer: 4
A and C
Statements A and C are correct about grep command.
此命令用于过滤文件的内容。
该命令不用于过滤文件内容。
我们可以使用grep命令在文件中搜索指定的单词。
Linux操作系统中没有grep命令。
选项:
正确答案:4
A和C
语句A和C关于grep命令是正确的。
Correct answer: 1
Global Regular Expression Print
The "grep" stands for "Global Regular Expression Print".
Correct answer: 1
grep -v <specific word> <filename>
The 1st statement is correct command to print lines of the file that are not matching to the specific word.
正确答案:1
grep -v <特定字词> <文件名>
第一条语句是正确的命令,用于打印与特定单词不匹配的文件行。
Correct answer: 2
-i
The "-i" option is used to ignore the case for searching a word in a file.
The comm command is used to compare the data of two files.
It displays three columns in the output by default.
It displays two columns in the output by default.
The comm command is used to communicate with the TCP socket.
Options:
Correct answer: 3
A and B
Statements A and B are correct about comm command in the Linux operating system.
comm命令用于比较两个文件的数据。
默认情况下,它在输出中显示三列。
默认情况下,它在输出中显示两列。
comm命令用于与TCP套接字通信。
选项:
正确答案:3
A和B
语句A和B关于Linux操作系统中的comm命令是正确的。
Correct answer: 3
comm -12 <file1> <file2>
The 3rd option is correct, because -12 describes, it do not display 1st and 2nd column.
正确答案:3
通讯-12 <file1> <file2>
第三个选项是正确的,因为-12描述,所以它不显示第一列和第二列。
The sed command is used to display modified data on the console screen, actual data in the file remain the same.
The sed command is used to modify the data of a file permanently.
The regular expressions are used to display modified data of a file in the sed command.
The sed command does not use regular expressions.
Options:
Correct answer: 1
A and C
Statements A and C are correct about sed command in the Linux operating system.
sed命令用于在控制台屏幕上显示修改后的数据,文件中的实际数据保持不变。
sed命令用于永久修改文件数据。
正则表达式用于在sed命令中显示文件的修改数据。
sed命令不使用正则表达式。
选项:
正确答案:1
A和C
语句A和C在Linux操作系统中关于sed命令是正确的。
Correct answer: 2
Stream Editor
The "sed" stands for Stream Editor in the Linux Operating System.
zcat
zmore
zless
zgip
Options:
Correct answer: 1
d
Option "d" is used in the regular expression to remove a complete line from the output of a file using sed command.
cat猫
兹莫尔
Zless
吉普
选项:
正确答案:1
d
在正则表达式中使用选项“ d”,使用sed命令从文件输出中删除整行。
Correct answer: 4
tee
The tee command is the correct answer.
Correct answer: 1
Yes
Yes, we can do this using the "tr" command.
Correct answer: 1
Yes
Yes, we can do this using the "tr" command.
This command is used to delete unique data from a file permanently.
This command is used to display a sorted list in which every word will occur only once.
We can count the occurrence of a word using uniq command.
None of the above
Options:
Correct answer: 3
B and C
Statements B and C are correct about uniq command.
此命令用于从文件中永久删除唯一数据。
此命令用于显示排序列表,其中每个单词只会出现一次。
我们可以使用uniq命令来计算单词的出现。
以上都不是
选项:
正确答案:3
B和C
语句B和C关于uniq命令是正确的。
This command is used to count the lines of a file.
This command is used to count the words of a file.
This command is used to count the characters of a file.
All the above.
Options:
Correct answer: 4
D
All statements are correct about "wc" command.
此命令用于计算文件的行数。
此命令用于计算文件的字数。
此命令用于计算文件的字符。
以上全部。
选项:
正确答案:4
d
所有有关“ wc”命令的陈述都是正确的。
This command is used to display the content of the file in octal format.
This command is used to display the content of the file in hexadecimal format.
This command is used to display the content of the file in ASCII format.
All the above.
Options:
Correct answer: 4
D
All statements are correct about od command.
此命令用于以八进制格式显示文件的内容。
此命令用于以十六进制格式显示文件的内容。
此命令用于以ASCII格式显示文件的内容。
以上全部。
选项:
正确答案:4
d
所有关于od命令的陈述都是正确的。
This command is used to sort the content of a file in alphabetical order.
This command is used to sort the content of a file based on the column.
This command is used for numeric sorting bases on the column.
None of the Above.
Options:
Correct answer: 3
A, B, and C
Statements A, B, and C are correct about sort command.
此命令用于按字母顺序对文件的内容进行排序。
此命令用于根据列对文件内容进行排序。
此命令用于基于列的数字排序。
以上都不是。
选项:
正确答案:3
A,B和C
语句A,B和C关于sort命令是正确的。
Correct answer: 2
-k
The option "-k" is used to specify the column number for sorting the content of a file.
Correct answer: 2
gzip
The "gzip" command is used to compress a file.
Correct answer: 3
Using -l option of gzip command
The option "-l" of "gzip" command is used to see the compression ratio of a file.
正确答案:3
使用gzip命令的-l选项
“ gzip”命令的选项“ -l”用于查看文件的压缩率。
Correct answer: 2
No
No, we cannot compress a directory using gzip command.
Correct answer: 3
tar
The "tar" command is used to compress a directory.
翻译自: https://www.includehelp.com/linux/filter-commands-aptitude-questions-and-answers.aspx
linux过滤器命令