Linux Shell命令能力傾向問題和解答

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

本節包含有關Linux Shell命令的 Aptitude問答。

1) Which of the following command is used to check a Linux command is a built-in shell command or external command?
  1. cmdtype

  2. type

  3. ctype

  4. commandtype

Answer & Explanation

Correct answer: 2
type

The type command is used to check a Linux command is a built-in shell command or external command.

1)以下哪個命令用于檢查Linux命令是內置的shell命令還是外部命令?
  1. 命令類型

  2. 類型

  3. 類型

  4. 命令類型

答案與解釋

正確答案:2
類型

type命令用于檢查Linux命令是內置的shell命令還是外部命令。

2) Which of the following commands are built-in shell commands in the Linux operating system?
  1. pwd

  2. cd

  3. export

  4. echo

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 built-in shell commands.

2)以下哪些命令是Linux操作系統中的內置shell命令?
  1. 密碼

  2. 光盤

  3. 出口

  4. 回聲

選項:

  1. A和B

  2. C和D

  3. A,B和C

  4. A,B,C和D

答案與解釋

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

所有給定的命令都是內置的shell命令。

3) Which of the following commands are external commands in the Linux operating system?
  1. cat

  2. file

  3. help

  4. man

Options:

  1. A and B

  2. C and D

  3. A, B, and D

  4. A, B, C, and D

Answer & Explanation

Correct answer: 3
A, B, and D

The cat, file, and man are external commands used in the Linux operating system.

3)以下哪些命令是Linux操作系統中的外部命令?
  1. 文件

  2. 救命

  3. 男子

選項:

  1. A和B

  2. C和D

  3. A,B和D

  4. A,B,C和D

答案與解釋

正確答案:3
A,B和D

cat , file和man是Linux操作系統中使用的外部命令。

4) Which of the following command is used to display the path of a command in the Linux File System?
  1. pcmd

  2. which

  3. pathcmd

  4. None of the above

Answer & Explanation

Correct answer: 2
which

The which command is used to display the path of a command in the Linux File System.

4)以下哪個命令用于顯示Linux文件系統中命令的路徑?
  1. pcmd

  2. 哪一個

  3. 路徑

  4. 以上都不是

答案與解釋

正確答案:2
哪一個

which命令用于顯示Linux文件系統中命令的路徑。

5) Which of the following command is used to assign a new name to the Linux built commands?
  1. newcmd

  2. new

  3. alias

  4. aliasname

Answer & Explanation

Correct answer: 3
alias

The alias command is used to assign a new name to the Linux built commands?

5)以下哪個命令用于為Linux內置命令分配新名稱?
  1. 新命令

  2. 別名

  3. 別名

答案與解釋

正確答案:3
別名

alias命令用于為Linux內置命令分配新名稱?

6) Which of the following command is used to enable the shell expansion?
  1. shell +x

  2. shell -x

  3. set -x

  4. set +

Answer & Explanation

Correct answer: 3
set -x

The set –x command is used to enable the shell expansion.

6)以下哪個命令用于啟用Shell擴展?
  1. 殼+ x

  2. 殼-x

  3. 設置-x

  4. 設置+

答案與解釋

正確答案:3
設置-x

set –x命令用于啟用外殼擴展。

7) Which of the following operator is used to execute multiple commands in a single line?
  1. ;

  2. %

  3. &&

  4. ||

Answer & Explanation

Correct answer: 1
;

The semicolon (;) operator is used to executing multiple commands in a single line.

7)以下哪個運算符用于在一行中執行多個命令?
  1. ;

  2. &&

  3. ||

答案與解釋

正確答案:1
;

分號(;)運算符用于在一行中執行多個命令。

8) Which of the following command is used to remove an existing alias?
  1. rmalias

  2. unalias

  3. delalias

  4. ralials

Answer & Explanation

Correct answer: 2
unalias

The unalias command is used to remove an existing alias.

8)以下哪個命令用于刪除現有別名?
  1. rmalias

  2. 無別名

  3. 德拉利亞斯

  4. 集會

答案與解釋

正確答案:2
無別名

unalias命令用于刪除現有別名。

9) Which of the following operator is used to comment lines in a shell script file?
  1. //

  2. \\

  3. /**/

  4. #

Answer & Explanation

Correct answer: 4
#

The # operator is used to comment line in a shell script file.

9)以下哪個運算符用于注釋Shell腳本文件中的行?
  1. //

  2. \\

  3. / ** /

答案與解釋

正確答案:4

#運算符用于注釋shell腳本文件中的行。

10) The alias created by "alias" command can be used after exiting from shell?
  1. Yes

  2. No

Answer & Explanation

Correct answer: 2
No

No, the alias created by the alias command can be used after exiting from shell. We can create permanent alias by storing alias in the bash startup file.

10)“ alias”命令創建的別名可以在退出shell后使用嗎?
  1. 沒有

答案與解釋

正確答案:2
沒有

不,從shell退出后,可以使用由alias命令創建的別名 。 我們可以通過將別名存儲在bash啟動文件中來創建永久別名。

11) Which of the following operator is used to store the exit code of a previous command?
  1. $?

  2. %$

  3. ?&

  4. [email?protected]

Answer & Explanation

Correct answer: 1
$?

The dollar question mark ($?) is used to store the exit code of a previous command.

11)以下哪個運算符用于存儲前一個命令的退出代碼?
  1. $?

  2. %$

  3. ?&

  4. [電子郵件保護]

答案與解釋

正確答案:1
$?

美元問號( $? )用于存儲上一個命令的退出代碼。

12) There are the following statements that are given below, which of them are correct about Globbing?
  1. The Globbing is used to recognize the wildcard characters and then expand them into path-name.

  2. The Globbing is also known as path-name expansion.

  3. The File Globbing is not supported by the Linux operating system.

  4. All the above

Options:

  1. A and B

  2. A and C

  3. A, B, and C

  4. D

Answer & Explanation

Correct answer: 1
A and B

Statements A and B are correct about GLobbing in the Linux operating system.

12)下面給出了以下陳述,其中哪些關于Globbing是正確的?
  1. Globbing用于識別通配符,然后將其擴展為路徑名。

  2. Globbing也稱為路徑名擴展。

  3. Linux操作系統不支持File Globbing。

  4. 以上全部

選項:

  1. A和B

  2. A和C

  3. A,B和C

  4. d

答案與解釋

正確答案:1
A和B

語句A和B關于Linux操作系統中的GLobbing是正確的。

13) There are the following statements that are given below, which of them are correct about Wildcards in the Linux operating system?
  1. Wildcards are the string patterns that contain some special characters.

  2. Wildcards are used to perform actions on one or more file that uses the same pattern.

  3. Linux shell used wildcard characters for globbing.

  4. All the above

Options:

  1. A and B

  2. A and C

  3. A, B, and C

  4. D

Answer & Explanation

Correct answer: 4
D

All given statements are correct about Wildcards in the Linux operating system.

13)下面給出了以下語句,其中哪些對于Linux操作系統中的通配符是正確的?
  1. 通配符是包含一些特殊字符的字符串模式。

  2. 通配符用于對使用相同模式的一個或多個文件執行操作。

  3. Linux shell使用通配符來進行通配。

  4. 以上全部

選項:

  1. A和B

  2. A和C

  3. A,B和C

  4. d

答案與解釋

正確答案:4
d

所有給定的語句對于Linux操作系統中的通配符都是正確的。

14) Which of the following characters are used for wildcards in the Linux operating system?
  1. ?

  2. *

  3. []

  4. <>?

Options:

  1. A and B

  2. A and C

  3. A, B, and C

  4. D

Answer & Explanation

Correct answer: 3
A, B, and C

In the Linux, Question mark ?, asterisk *, and square brackets [] are used as wildcard characters.

14)以下哪些字符在Linux操作系統中用于通配符?
  1. *

  2. []

  3. <>

選項:

  1. A和B

  2. A和C

  3. A,B和C

  4. d

答案與解釋

正確答案:3
A,B和C

在Linux中,問號? ,星號*和方括號[]用作通配符。

15) Which of the following command is used to display the last executed commands list?
  1. lastcmd

  2. last

  3. history

  4. chistory

Answer & Explanation

Correct answer: 3
history

The history command is used to display the last executed commands list.

15)以下哪個命令用于顯示最后執行的命令列表?
  1. lastcmd

  2. 持續

  3. 歷史

  4. 情欲

答案與解釋

正確答案:3
歷史

歷史命令用于顯示最后執行的命令列表。

16) Which of the following environment variable is used to specify the number of commands history in the current environment?
  1. $HISTSIZE

  2. $HISSIZE

  3. $HISTORYSIZE

  4. $HSIZE

Answer & Explanation

Correct answer: 1
$HISTSIZE

The $HISTSIZE environment variable is used to specify the number of commands history in the current environment. It can also modify according to our requirements.

16)以下哪個環境變量用于指定當前環境中的命令歷史記錄數?
  1. $ HISTSIZE

  2. $ HISSIZE

  3. $ HISTORYSIZE

  4. $ HSIZE

答案與解釋

正確答案:1
$ HISTSIZE

$ HISTSIZE環境變量用于指定當前環境中的命令歷史記錄數。 也可以根據我們的要求進行修改。

17) Which of the following command is known as "bang bang" in the Linux operating system?
  1. ##

  2. $$

  3. !!

  4. @@

Answer & Explanation

Correct answer: 3
!!

The double exclamation (!!) is known as "bang bang" in the Linux operating system.

17)以下哪個命令在Linux操作系統中被稱為“ bang bang”?
  1. ##

  2. $$

  3. !!

  4. @@

答案與解釋

正確答案:3
!!

雙重感嘆號( !! )在Linux操作系統中被稱為“ bang bang”。

18) There are the following statements that are given below, which of them are correct about "bang bang" command in the Linux operating system?
  1. The "bang bang" command is used to remove commands history.

  2. The "bang bang" command is used to remove execute last executed command.

  3. The "bang bang" command is used to display the last login time of the current user.

  4. None of the above

Answer & Explanation

Correct answer: 2
The "bang bang" command is used to remove execute last executed command.

The "bang bang" command is used to remove execute last executed command.

18)下面給出了以下語句,其中哪些對于Linux操作系統中的“ bang bang”命令是正確的?
  1. “ bang bang”命令用于刪除命令歷史記錄。

  2. “ bang bang”命令用于刪除執行最后執行的命令。

  3. “ bang bang”命令用于顯示當前用戶的最后登錄時間。

  4. 以上都不是

答案與解釋

正確答案:2
“ bang bang”命令用于刪除執行最后執行的命令。

“ bang bang”命令用于刪除執行最后執行的命令。

19) Which command is used to execute a command based on the number assigned in the command history, here we denote command history number by N?
  1. !N

  2. #N

  3. $N

  4. !!N

Answer & Explanation

Correct answer: 1
!N

The single exclamation is used with history numbers to execute the specific command from history.

19)根據命令歷史記錄中分配的編號,使用哪個命令執行命令,此處用N表示命令歷史記錄編號?
  1. !N

  2. #N

  3. $ N

  4. !! N

答案與解釋

正確答案:1
!N

單個感嘆號與歷史記錄編號一起使用以執行歷史記錄中的特定命令。

20) Can we embed the new shell on the command line?
  1. Yes

  2. No

Answer & Explanation

Correct answer: 1
Yes

Yes, we can embed the new shell on the command line.

20)我們可以在命令行中嵌入新的shell嗎?
  1. 沒有

答案與解釋

正確答案:1

是的,我們可以在命令行中嵌入新的shell。

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

本文來自互聯網用戶投稿,該文觀點僅代表作者本人,不代表本站立場。本站僅提供信息存儲空間服務,不擁有所有權,不承擔相關法律責任。
如若轉載,請注明出處:http://www.pswp.cn/news/541970.shtml
繁體地址,請注明出處:http://hk.pswp.cn/news/541970.shtml
英文地址,請注明出處:http://en.pswp.cn/news/541970.shtml

如若內容造成侵權/違法違規/事實不符,請聯系多彩編程網進行投訴反饋email:809451989@qq.com,一經查實,立即刪除!

相關文章

php mysql 權重_PHP對MySql的常用操作

關于PHP對MySql的常用操作最近做網站&#xff0c;用PHP操作數據庫也很多次了&#xff0c;但總是忘記&#xff0c;參考了網上的很多資料&#xff0c;算是整理記錄下。數據庫操作類實現數據庫的連接&#xff0c;斷開&#xff0c;以及請求&#xff1a;/*** Created by PhpStorm.* …

Python timedelta total_seconds()方法與示例

Python timedelta.total_seconds()方法 (Python timedelta.total_seconds() Method) timedelta.timedeltotal_seconds() method is used in the timedelta class of module datetime. timedelta.timedeltotal_seconds()方法在模塊datetime的timedelta類中使用。 It uses an i…

static和extern對函數的作用

2019獨角獸企業重金招聘Python工程師標準>>> 外部函數&#xff1a;定義的函數能被本文件和其他文件訪問 默認情況下所有函數都是外部函數 不允許有同名的外部函數內部函數&#xff1a;定義的函數只能被本文件訪問&#xff0c;其他文件不能訪問 允許不同文件中有同名…

MySQL從服務器寫入報錯嗎_MySQL主從復制讀寫分離及奇怪的問題

一直都沒有寫blog的習慣&#xff0c;以前總覺得自己的腦子就是最好的記憶容器&#xff0c;現在覺得我好像有個假腦子。當時是使用阿里云鏡像&#xff0c;安裝了兩臺ECS&#xff0c;結果配置MySQL的時候出現了UUID重復問題。先從配置主從開始吧&#xff0c;值得記錄。文中很多部…

python二分法查找程序_查找Python程序的輸出| 套裝2(基礎)

python二分法查找程序Program 1: 程序1&#xff1a; a 10b 3res a/b print "a/b: ", res res float(a/b)print "float (a/b) : ", res res float (a) /float (b)print "float (a/b) : ", res res a/b print "a/b: ", resOutput…

數據庫 數據庫SQL語句一

字符和日期 --字符和日期都要包含在單引號中 --字符大小寫敏感&#xff0c;日期格式敏感 --默認的日期格式是DD-MON-RR--查詢當前系統時間 SQL> select sysdate from dual; --查詢工資在1000~2000之間的員工信息 SQL> select * from emp where sal>1000 and sal<20…

mysql text保存圖片_用mysql 如果包含有文字和圖片,那么我要用哪種數據類型存儲呢?還是分開,用TEXT和BLOB嗎?...

rootytt:/var/lib/mysql-files# for i in seq 1 100; do cp 微信圖片_20190711095019.jpg "$i".jpg;done;rootytt:/var/lib/mysql-files# ls100.jpg 17.jpg 25.jpg 33.jpg 41.jpg 4.jpg 58.jpg 66.jpg 74.jpg 82.jpg 90.jpg 99.jpg f8.tsv10.jpg 18…

flask mysql 版本_flask 數據庫字段類型

使用flask_sqlalchemy首先引用一下廖雪峰Python教程里關于sqlalchemy的話&#xff0c;這里我們要講的是flask_sqlalchemy的用法。1. 安裝用pip安裝即可&#xff0c; 進入cmd控制臺輸入pip install Flask-SQLAlchemy2. 引用引用方法有2種&#xff0c;舊的和新的。from f...文章鄰…

Kafka的配置文件詳細描述

在kafka/config/目錄下面有3個配置文件&#xff1a; producer.propertiesconsumer.propertiesserver.properties (1).producer.properties:生產端的配置文件 #指定kafka節點列表&#xff0c;用于獲取metadata&#xff0c;不必全部指定 #需要kafka的服務器地址&#xff0c;來獲取…

Java StreamTokenizer nextToken()方法與示例

StreamTokenizer類nextToken()方法 (StreamTokenizer Class nextToken() method) nextToken() method is available in java.io package. nextToken()方法在java.io包中可用。 nextToken() method is used to parse the next token from the input stream of this StreamTokeni…

二維數組m的元素是4個字符組成的串_串、數組和廣義表

1. 串1.1 串的定義ADT String{ 數據對象&#xff1a;D{ai|ai∈CharacterSet, i1, 2, …, n, n≧0} 數據關系&#xff1a;R1{|ai-1, ai∈D, i2, …, n} 基本操作&#xff1a; 生成一個值等于chars的串 復制一個串 判斷串是否空串 比較串的大小 返回串元素的個數 將串清空 …

流媒體測試筆記記錄之————阿里云監控、OBS、FFmpeg拉流和推流變化比較記錄...

OBS設置視頻&#xff08;512kbps&#xff09;和音頻&#xff08;128kbps&#xff09;比特率 阿里云監控結果&#xff1a; 使用FFmpeg拉流到Nginx 服務器測試比特率 第二次測試&#xff0c;修改視頻和音頻比特率 OBS設置 阿里云監控 Nginx 比特率變化 FFMPEG 拉流截圖

Java RandomAccessFile readChar()方法及示例

RandomAccessFile類readChar()方法 (RandomAccessFile Class readChar() method) readChar() method is available in java.io package. readChar()方法在java.io包中可用。 readChar() method is used to read a character value from this file and it can read character up…

python方差分析模型的預測結果怎么看_statsmodels中方差分析表結果解析

引言通常我們在對多個變量進行統計分析的時候&#xff0c;結果的匯總和整理需要耗費大量的時間和精力&#xff0c;稍有不慎還有可能出現錯誤。因此在對多個變量統計分析的時候&#xff0c;使用自動化的腳本對結果進行整理和匯總就十分的方便了。這里筆者使用Python當中的statsm…

Java PipedOutputStream connect()方法與示例

PipedOutputStream類的connect()方法 (PipedOutputStream Class connect() method) connect() method is available in java.io package. connect()方法在java.io包中可用。 connect() method is used to cause this PipedOutputStream to be connected to the given PipedInpu…

[轉載] 中國象棋軟件-引擎實現(一)概述

2005年6月我系第二批科技小組的項目正式確定為實現一款中國象棋對弈軟件。基本功能包括人機對戰、網絡對戰。我負責開發人機對戰的引擎部分&#xff0c;也就是讓計算機下棋。經過了暑假整整兩個月的學習與實踐&#xff0c;我終于初步完成了程序&#xff0c;雖然電腦的下棋水平實…

Java FilePermission getActions()方法與示例

FilePermission類的getActions()方法 (FilePermission Class getActions() method) getActions() method is available in java.io package. getActions()方法在java.io包中可用。 getActions() method is used to check whether this FilePermission and the given object are…

字符與編碼(編碼轉換)

作為一名程序員&#xff0c;肯定有被亂碼困擾的時候&#xff0c;真到了百思不得其解的時候&#xff0c;就會覺得&#xff1a;英文程序員真幸福。但其實只要明白編碼之間的轉換規律&#xff0c;其實亂碼還是很好解決的。我們都知道字符串在保存和傳輸的時候需要先經過編碼成二進…

mysql 刷新二進制日志_使用binlog日志恢復MySQL數據庫刪除數據的方法

binlog日志簡介:binlog 就是binarylog&#xff0c;二進制日志文件&#xff0c;這個文件記錄了MySQL所有的DDL和DML(除了數據查詢語句)語句&#xff0c;以事件形式記錄&#xff0c;還包含語句所執行的消耗的時間。binlog日志包括兩類文件&#xff1a;1)二進制日志索引文件(文件名…

Java FileInputStream available()方法與示例

FileInputStream類的available()方法 (FileInputStream Class available() method) available() method is available in java.io package. available()方法在java.io包中可用。 available() method is used to return the number of bytes left that can be read from this Fi…