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 目录命令