linux 目錄命令
This section contains Aptitude Questions and Answers on Linux Directory Commands.
本節包含有關Linux目錄命令的 Aptitude問答。
In the Linux operating system, a command is an instruction to the system to perform a particular task.
Linux commands are case sensitive.
All Linux commands are scripts written in python.
All of the above
Options:
A and B
A and C
B and C
D
Correct answer: 1
A and B
Statements A and B are correct about commands in the Linux operating system.
在Linux操作系統中,命令是對系統執行特定任務的指令。
Linux命令區分大小寫。
所有Linux命令都是用python編寫的腳本。
上述所有的
選項:
A和B
A和C
B和C
d
正確答案:1
A和B
語句A和B關于Linux操作系統中的命令是正確的。
Yes
No
Correct answer: 1
Yes
Yes, Linux commands can be internal or external, internal commands are built-in shell commands and external commands are special programs written in C and other programming languages.
是
沒有
正確答案:1
是
是的,Linux命令可以是內部或外部的,內部命令是內置的Shell命令,外部命令是用C和其他編程語言編寫的特殊程序。
cdir
dir
pwd
pdir
Correct answer: 3
pwd
The pwd command is used to print the path of the current directory.
cdir
目錄
密碼
pdir
正確答案:3
密碼
pwd命令用于打印當前目錄的路徑。
cd ..
cd ~
cd -
cd .
Correct answer: 3
cd –
The cd - is exact command to change from the current directory to the previous directory, while cd .. is used to change in the parent directory.
光盤..
光盤?
光盤-
光盤
正確答案:3
cd –
cd-是從當前目錄更改為上一個目錄的精確命令,而cd ..用于在父目錄中進行更改。
Yes
No
Correct answer: 1
Yes
Yes, we can change directory using cd command with an absolute path.
是
沒有
正確答案:1
是
是的,我們可以使用帶有絕對路徑的cd命令更改目錄。
Yes
No
Correct answer: 2
No
No, an absolute path always starts from '/' in Linux commands.
是
沒有
正確答案:2
沒有
不,絕對路徑始終在Linux命令中從“ /”開始。
ls -l
ls -k
ls -a
ls -n
Correct answer: 3
ls -a
The ls -a command is used to list the files and directories along with hidden files.
ls -l
ls -k
ls -a
ls -n
正確答案:3
ls -a
ls -a命令用于列出文件和目錄以及隱藏文件。
ls -l
ls -n
ls -k
ls -h
Correct answer: 2
ls -n
The ls –n command is used to list the files and directories with group id and owner id instead of their names.
ls -l
ls -n
ls -k
ls -h
正確答案:2
ls -n
ls –n命令用于列出具有組ID和所有者ID而不是其名稱的文件和目錄。
ls -l
ls -s
ls -k
ls -h
Correct answer: 1
ls -l
The ls –l command is used to list the files and directories with the size of the file or directory.
ls -l
ls -s
ls -k
ls -h
正確答案:1
ls -l
ls –l命令用于列出文件和目錄以及文件或目錄的大小。
ls -v
ls --v
ls -version
ls --version
Correct answer: 4
ls --version
The ls --version command is used to check the version of the ls command.
ls -v
ls --v
ls版本
ls --version
正確答案:4
ls --version
ls --version命令用于檢查ls命令的版本。
md
mkdir
makedir
mkdirs
Correct answer: 2
mkdir
We can create multiple empty directories using the mkdir command.
md
麥克迪爾
Makedir
mkdirs
正確答案:2
麥克迪爾
我們可以使用mkdir命令創建多個空目錄。
Yes
No
Correct answer: 1
Yes
Yes, we can provide permissions to the directory at the time of creation using the –m option in the mkdir command.
是
沒有
正確答案:1
是
是的,我們可以使用mkdir命令中的–m選項在創建時為目錄提供權限。
rmdir -a
rmdir -p
rmdir -s
rmdir -k
Correct answer: 2
rmdir -p
The rmdir -p command is used to remove a directory with its sub-directories.
rmdir -a
rmdir -p
rmdir -s
rmdir -k
正確答案:2
rmdir -p
rmdir -p命令用于刪除包含其子目錄的目錄。
rmdir -removeall
rmdir -n
rmdir -rf
rmdir -ra
Correct answer: 3
rmdir -rf
The rmdir -rf command is used to remove a non-empty directory.
rmdir-刪除
rmdir -n
rmdir -rf
rmdir -ra
正確答案:3
rmdir -rf
rmdir -rf命令用于除去非空目錄。
翻譯自: https://www.includehelp.com/linux/directory-commands-aptitude-questions-and-answers.aspx
linux 目錄命令