linux 目录命令

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

本节包含有关Linux目录命令的 Aptitude问答。

1) There are the following statements that are given which of them are correct about Linux commands?

  1. In the Linux operating system, a command is an instruction to the system to perform a particular task.

  2. Linux commands are case sensitive.

  3. All Linux commands are scripts written in python.

  4. All of the above

Options:

  1. A and B

  2. A and C

  3. B and C

  4. D

Answer & Explanation

Correct answer: 1
A and B

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

1)给出了以下关于Linux命令正确的语句?

  1. 在Linux操作系统中,命令是对系统执行特定任务的指令。

  2. Linux命令区分大小写。

  3. 所有Linux命令都是用python编写的脚本。

  4. 上述所有的

选项:

  1. A和B

  2. A和C

  3. B和C

  4. d

答案与解释

正确答案:1
A和B

语句A和B关于Linux操作系统中的命令是正确的。

2) Linux commands can be internal or external?

  1. Yes

  2. No

Answer & Explanation

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.

2)Linux命令可以是内部的还是外部的?

  1. 没有

答案与解释

正确答案:1

是的,Linux命令可以是内部或外部的,内部命令是内置的Shell命令,外部命令是用C和其他编程语言编写的特殊程序。

3) Which command is used to get the path of the current directory?

  1. cdir

  2. dir

  3. pwd

  4. pdir

Answer & Explanation

Correct answer: 3
pwd

The pwd command is used to print the path of the current directory.

3)使用哪个命令获取当前目录的路径?

  1. cdir

  2. 目录

  3. 密码

  4. pdir

答案与解释

正确答案:3
密码

pwd命令用于打印当前目录的路径。

4) Which exact command is used to change from the current directory to the previous directory?

  1. cd ..

  2. cd ~

  3. cd -

  4. cd .

Answer & Explanation

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.

4)使用哪个确切的命令从当前目录切换到上一个目录?

  1. 光盘..

  2. 光盘〜

  3. 光盘-

  4. 光盘

答案与解释

正确答案:3
cd –

cd-是从当前目录更改为上一个目录的精确命令,而cd ..用于在父目录中进行更改。

5) Can we change directory using "cd" command with an absolute path?

  1. Yes

  2. No

Answer & Explanation

Correct answer: 1
Yes

Yes, we can change directory using cd command with an absolute path.

5)我们可以使用带有绝对路径的“ cd”命令更改目录吗?

  1. 没有

答案与解释

正确答案:1

是的,我们可以使用带有绝对路径的cd命令更改目录。

6) A relative path always starts from '/' in Linux commands?

  1. Yes

  2. No

Answer & Explanation

Correct answer: 2
No

No, an absolute path always starts from '/' in Linux commands.

6)相对路径始终在Linux命令中从“ /”开始?

  1. 没有

答案与解释

正确答案:2
没有

不,绝对路径始终在Linux命令中从“ /”开始。

7) Which exact command is used to list the files and directories along with hidden files?

  1. ls -l

  2. ls -k

  3. ls -a

  4. ls -n

Answer & Explanation

Correct answer: 3
ls -a

The ls -a command is used to list the files and directories along with hidden files.

7)使用哪个确切命令列出文件和目录以及隐藏文件?

  1. ls -l

  2. ls -k

  3. ls -a

  4. ls -n

答案与解释

正确答案:3
ls -a

ls -a命令用于列出文件和目录以及隐藏文件。

8) Which exact command is used to list the files and directories with group id and owner id instead of their names?

  1. ls -l

  2. ls -n

  3. ls -k

  4. ls -h

Answer & Explanation

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.

8)使用哪个确切命令列出具有组ID和所有者ID而不是其名称的文件和目录?

  1. ls -l

  2. ls -n

  3. ls -k

  4. ls -h

答案与解释

正确答案:2
ls -n

ls –n命令用于列出具有组ID和所有者ID而不是其名称的文件和目录。

9) Which exact command is used to list the files and directories with the size of the file or directory?

  1. ls -l

  2. ls -s

  3. ls -k

  4. ls -h

Answer & Explanation

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.

9)使用哪个确切命令列出文件和目录以及文件或目录的大小?

  1. ls -l

  2. ls -s

  3. ls -k

  4. ls -h

答案与解释

正确答案:1
ls -l

ls –l命令用于列出文件和目录以及文件或目录的大小。

10) How to check the version of the "ls" command?

  1. ls -v

  2. ls --v

  3. ls -version

  4. ls --version

Answer & Explanation

Correct answer: 4
ls --version

The ls --version command is used to check the version of the ls command.

10)如何检查“ ls”命令的版本?

  1. ls -v

  2. ls --v

  3. ls版本

  4. ls --version

答案与解释

正确答案:4
ls --version

ls --version命令用于检查ls命令的版本。

11) Which command is used to create multiple directories in a single command?

  1. md

  2. mkdir

  3. makedir

  4. mkdirs

Answer & Explanation

Correct answer: 2
mkdir

We can create multiple empty directories using the mkdir command.

11)哪个命令用于在单个命令中创建多个目录?

  1. md

  2. 麦克迪尔

  3. Makedir

  4. mkdirs

答案与解释

正确答案:2
麦克迪尔

我们可以使用mkdir命令创建多个空目录。

12) Can we provide permissions to the directory at the time of creation using the "mkdir" command?

  1. Yes

  2. No

Answer & Explanation

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.

12)我们可以在使用“ mkdir”命令创建目录时为其提供权限吗?

  1. 没有

答案与解释

正确答案:1

是的,我们可以使用mkdir命令中的–m选项在创建时为目录提供权限。

13) Which exact command is used to remove a directory with its sub-directories?

  1. rmdir -a

  2. rmdir -p

  3. rmdir -s

  4. rmdir -k

Answer & Explanation

Correct answer: 2
rmdir -p

The rmdir -p command is used to remove a directory with its sub-directories.

13)使用哪个确切命令删除包含其子目录的目录?

  1. rmdir -a

  2. rmdir -p

  3. rmdir -s

  4. rmdir -k

答案与解释

正确答案:2
rmdir -p

rmdir -p命令用于删除包含其子目录的目录。

14) Which exact command is used to remove a non-empty directory?

  1. rmdir -removeall

  2. rmdir -n

  3. rmdir -rf

  4. rmdir -ra

Answer & Explanation

Correct answer: 3
rmdir -rf

The rmdir -rf command is used to remove a non-empty directory.

14)使用哪个确切命令删除非空目录?

  1. rmdir-删除

  2. rmdir -n

  3. rmdir -rf

  4. rmdir -ra

答案与解释

正确答案:3
rmdir -rf

rmdir -rf命令用于除去非空目录。

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

linux 目录命令

linux 目录命令_Linux目录命令能力问题和解答相关推荐

  1. java linux常用命令_Linux常用命令

    一.注销,关机,重启 注销系统的logout命令 1,Logout 注销是登陆的相对操作,登陆系统后,若要离开系统,用户只要直接下达logout命令即可: [root@localhost root]# ...

  2. checksum linux 命令_linux常用命令总结

    一.find命令 作用:查找文件 [root@server ~]# find / -name elasticsearch /var/log/elasticsearch /var/run/elastic ...

  3. linux 指令tftp传输文件_tftp命令_Linux tftp 命令用法详解:在本机和tftp服务器之间使用TFTP协议传输文件...

    tftp命令用在本机和tftp服务器之间使用TFTP协议传输文件. TFTP是用来下载远程文件的最简单网络协议,它其于UDP协议而实现.嵌入式linux的tftp开发环境包括两个方面:一是linux服 ...

  4. find linux 指定后缀_Linux终端命令入坑必备知识与技巧

    才接触Linux系统,一些概念简直是一头雾水,那么本文的目的就是在Linux中使用终端输入命令时,常见的一些概念及技巧. 1 什么是主目录(home directory)?Linux是一个典型的多用户 ...

  5. linux 修改文件名_Linux常用命令

    Linux下一切皆文件 查看型 ls 查看当前文件夹内容 选项 -a 查看隐藏文件 -l 查看文件详细信息 pwd 查看当前所在路径 su 切换用户 cat /etc/passwd 查看当前系统的用户 ...

  6. linux 查找文件_LINUX常用命令全集

    软件测试工程师面试必备LINUX命令 现在做测试的出去面试,都会被问到linux,不会几个linux指令都不好意思说自己是做测试的了,本篇收集了几个被问的频率较高的linux面试题.在面试过程中常见被 ...

  7. linux 截取列_Linux 常用命令汇总

    Linux命令太多,主要写写自己平时使用频率较高的常用命令,内容是自己的笔记内容,所以整个逻辑看起来会比较乱.每条认真看,看完会有收获哦. 文中会出现大部分的伪代码,只是帮助自己记忆的. 1.LINU ...

  8. linux常用命令_Linux常用命令总结

    点击上方"菜鸟名企梦",选择"置顶或者星标" 你关注的就是我关心的! 来源:Linux爱好者 ID:LinuxHub Linux常用命令 目录操作命令 ls 命 ...

  9. linux常用命令_Linux常用命令~~~

    Linux常用命令~~~ 1. 查看当前的Linux服务器的运行级别 'who -r' 和'runlevel'命令可以查看当前linux服务器运行级别 2. 查看Linux的默认网关 'route - ...

最新文章

  1. python pandas空值与缺失值处理
  2. 成功解决Please use the NLTK Downloader to obtain the resource:
  3. 你相信逛B站也能学编程吗?
  4. qc中的流程图怎么画_QC流程图参考
  5. python读取文件数据堆栈溢出的原因_堆栈溢出一般是什么原因?
  6. C++ 多线程 atomic
  7. 面向对象程序设计简介
  8. Github上删除文件后与本地同步
  9. 设计思想之高内聚低耦合
  10. Layui 文档(含镜像站资源)
  11. 巨波公第3子登国公后裔在荆州(巨波公6子的后裔,全部水落石出)
  12. HTML学生个人网站作业设计:动漫网站设计——哆啦A梦(5页) HTML+CSS+JavaScript 简单DIV布局个人介绍网页模板代码 DW学生个人网站制作成品下载
  13. 启动VMware时遇到“vmx86版本不匹配问题”处理方法
  14. Wps日期时间格式转文本、科学计数法转数字
  15. 两种 Type-C 耳机:模拟耳机 数字耳机
  16. IOS应用内购买App开发完整流程
  17. R语言 基于共现提取《雪中悍刀行》人物关系并画网络图
  18. VarianceDeviation Tradeoff(方差、偏差权衡)
  19. 芦荟怎么吃 这样吃很美味
  20. java求1000以内的完数及分析

热门文章

  1. Ext grid 根据行号获取行数据
  2. vue之node.js的简单介绍
  3. iOS中Safari浏览器select下拉列表文字太长被截断的处理方法
  4. 题解 P2598 【[ZJOI2009]狼和羊的故事】
  5. Jmeter参数化 CSV Data Set Config界面说明
  6. python2.7虚拟环境virtualenv安装及使用
  7. Android 编程下 AlarmManager
  8. 一个把图片保存到SQL数据库的工具
  9. mysql alter怎么用,mysql alter话语用法
  10. linux重启鼠标键盘服务,Linux 关闭服务后 鼠标 键盘用不了