linux混合命令
This section contains Aptitude Questions and Answers on Linux Commands (Mixed).
本节包含有关Linux命令的 Aptitude问答(混合) 。
Correct answer: 3
getent
The getent command is used to display the list of available groups in the system.
- delgroup –d <username> <groupname>
- remusr –d <username> <groupname>
- gpasswd -d <username> <groupname>
- rm –d <username> <groupname>
Correct answer: 3
gpasswd -d <username> <groupname>
The 3rd command is used to remove a user from the group in the Linux system.
正确答案:3
gpasswd -d <用户名> <组名>
第三个命令用于从Linux系统中的组中删除用户。
- usermod -g <new_groupname> <username>
- usermod -g <username> <new_groupname>
- usermod -c <new_groupname> <username>
- usermod -c <username> <new_groupname>
Correct answer: 1
usermod -g <new_groupname> <username>
The 1st command is the correct command to change the group of a user in the Linux system.
正确答案:1
usermod -g <新组名> <用户名>
第一个命令是更改Linux系统中用户组的正确命令。
- The "nohup" stands for No Hang-up.
- The "nohup" stands for Notify Hang-up.
- The "nohup" command is used to keeps the processes running, even the terminal gets close by the user.
- This command is used to prevent the processes from the SIGHUP signals.
Options:
Correct answer: 4
A, C, and D
Statements A, C, and D are correct about the nohup command in the Linux system.
- “ nohup”代表“无挂断”。
- “ nohup”代表“通知挂断”。
- “ nohup”命令用于使进程保持运行,即使终端被用户关闭也是如此。
- 该命令用于防止来自SIGHUP信号的进程。
选项:
正确答案:4
A,C和D
关于Linux系统中的nohup命令,语句A,C和D是正确的。
Correct answer: 2
nohup.out
The hohup.out command is used to store the output of the command that executed with nohup utility.
正确答案:2
nohup.out
hohup.out命令用于存储使用nohup实用程序执行的命令的输出。
Correct answer: 2
$
The & symbol is used to run a background process.
Correct answer: 1
ssh-copy-id
The ssh-copy-id command is used to configure a public key at the SSH server for a user.
正确答案:1
ssh-copy-id
ssh-copy-id命令用于在SSH服务器上为用户配置公共密钥。
Correct answer: 4
ssh-add
The ssh-add is used to add a key to the SSH agent.
Correct answer: 4
scp
The scp command is used to transfer files to the remote computer.
Correct answer: 3
at
The at command is used to schedule the tasks in the Linux system.
Correct answer: 2
atq
The atq command is used to print pending tasks.
Correct answer: 1
atrm
The atrm command is used to delete scheduled tasks.
Correct answer: 4
teatime
The teatime keyword is used to specify the time of "4pm" in "at" command for scheduling tasks.
正确答案:4
下午茶时间
teatime关键字用于在计划任务的“ at”命令中指定“下午4点”的时间。
Correct answer: 1
expr
The expr command is used to perform mathematical expression and print output on the terminal.
- Plus '+' operator
- Modulus operator
- Regular expressions
- Set of characters in the string
Options:
Correct answer: 4
A, B, C, and D
All options are correct.
- 加'+'运算符
- 模算子
- 常用表达
- 字符串中的字符集
选项:
正确答案:4
A,B,C和D
所有选项均正确。
Correct answer: 3
expr 4 \* 2
The 3rd command is correct.
正确答案:3
expr 4 \ * 2
第三个命令是正确的。
Correct answer: 2
mail
The mail command is used to send an email, to use mail command we need to install the "mailutils” package in the system.
正确答案:2
邮件
mail命令用于发送电子邮件,要使用mail命令,我们需要在系统中安装“ mailutils”软件包。
Correct answer: 1
strings
The strings command is used to extract text from binary or executable files in the Linux operating system.
正确答案:1
弦
strings命令用于从Linux操作系统中的二进制文件或可执行文件中提取文本。
Correct answer: 3
whatis
The whatis command is used to get brief information about Linux commands and functions.
- 16-bit little endian
- 16-bit big endian
- 7-bit byte ASCII
- None of the above
Options:
Correct answer: 3
A, B, and C
Options A, B, and C are correct encodings used by the strings command.
- 16位小端
- 16位大字节序
- 7位字节ASCII
- 以上都不是
选项:
正确答案:3
A,B和C
选项A,B和C是字符串命令使用的正确编码。
翻译自: https://www.includehelp.com/linux/commands-mixed-aptitude-questions-and-answers.aspx
linux混合命令