linux 目录命令_Linux目录命令能力问题和解答

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

本文来自互联网用户投稿,该文观点仅代表作者本人,不代表本站立场。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如若转载,请注明出处:http://www.pswp.cn/news/379871.shtml

如若内容造成侵权/违法违规/事实不符,请联系多彩编程网进行投诉反馈email:809451989@qq.com,一经查实,立即删除!

相关文章

终于在HP2133上成功安装xp

今天拿到一台HP2133迷你笔记本,原装vista home basic,由于本人是在不喜欢vista,于是决定将使用xp换之。 很久没有研究装系统了,HP2133没有光驱,以前也没啥这方面经验,搞这个玩意安装完软件折腾了大半天&…

Java——GUI(图形用户界面设计)

事件处理:事件:用户的一个操作(例如:点击一下鼠标,或者敲击一下键盘)事件源:被操作的组件(例如:在一个窗体中的一个按钮,那个按钮就属于被操作的组件,按钮就是事件源)监听器&#xf…

python安全攻防---信息收集---IP查询

IP查询是通过当前所获得的URL去查询对应IP地址的过程,可应用Socket库函数中的gethostbyname()获取域名所对用的IP值 程序如下: # -*- coding:utf-8 -*- IP查询import socket ip socket.gethostbyname(www.baidu.com) print(ip)运行结果: …

智能课程表Android版-学年学期星期的实现

上次我们实现了日期和时间的动态显示,这次我们来实现学年,学期,周次的显示,如图: 首先是学年学期的显示: Calendar cCalendar.getInstance(); int yearc.get(Calendar.YEAR); int monthc.get(Calendar.MONTH)1;//Calen…

感染linux脚本程序技术

前言 ---- 本文来源于29A病毒杂志,其上对linux shell病毒技术有了一个综合的阐述,我不想翻译它,我以它的那篇为模板 写了这篇中文的文章,里面的代码我都做了调试. 对于shell编程的程序员来说所谓的shell病毒技术其实根本就是小牛一毛,这点在大家看完本文后就会有所体会 但,简单…

Java——设计模式(简单工厂模式)

* A:简单工厂模式概述* 简单工厂模式又叫静态工厂方法模式,它定义了一个具体的工厂类负责创建一些类的实例* B:优点* 客户端不需要再负责对象的创建,从而明确了各个类的职责* 简单来说,客户端你只需要用就可以了,就…

Java ObjectOutputStream writeFloat()方法与示例

ObjectOutputStream类writeFloat()方法 (ObjectOutputStream Class writeFloat() method) writeFloat() method is available in java.io package. 在java.io包中提供了writeFloat()方法 。 writeFloat() method is used to write the given 4 bytes of a float value. writeFl…

python安全攻防---信息收集---whois查询

whois是用来查询域名的IP以及所有者信息的传输协议。简单地说,whois就是一个数据库,用来查询域名是否以及被注册,以及注册域名的详细信息(如域名所有人、域名注册商等)。 使用whois查询,首先通过pip安装py…

百度面试题:从输入url到显示网页,后台发生了什么?

参考http://igoro.com/archive/what-really-happens-when-you-navigate-to-a-url/ http://www.cnblogs.com/wenanry/archive/2010/02/25/1673368.html 原文:http://igoro.com/archive/what-really-happens-when-you-navigate-to-a-url/ 作为一个软件开发者,你一定会…

VS2005无法启动修复办法

c:\Program Files\Microsoft Visual Studio 8\Common7\IDE>devenv /ResetSkipPkgs 转载于:https://www.cnblogs.com/doc/archive/2008/10/10/1307887.html

Java——设计模式(工厂方法模式)

* A:工厂方法模式概述* 工厂方法模式中抽象工厂类负责定义创建对象的接口,具体对象的创建工作由继承抽象工厂的具体类实现。* 简单来说:先定义一个工厂,工厂里面有些方法,这些方法就是用来创建动物的,然后有很多子工…

python安全攻防---爬虫基础---get和post提交数据

get提交数据1 get提交的数据就附在提交给服务器的url之后,以?开头参数之间以&隔开,例如/admin/user/123456.aspx?name123&id123 案例:写个脚本,在sogou自动搜索周杰伦,并将搜索页面的数据获取 程…

JavaMail中解决中文附件名乱码的问题

网上有很多类似的解决方案,很多是使用 if ((fileName ! null) && (fileName.toLowerCase().indexOf("gb2312") ! -1)){ fileName MimeUtility.decodeText(fileName); } 来解决,但对应gbk编码的附件名,这里仍不能正确处…

Java ObjectOutputStream writeBytes()方法与示例

ObjectOutputStream类writeBytes()方法 (ObjectOutputStream Class writeBytes() method) writeBytes() method is available in java.io package. writeBytes()方法在java.io包中可用。 writeBytes() method is used to write the given string as a sequence of bytes. write…

如何集中注意力(3)

如何集中注意力(3) [ 2008-10-20 10:15 ]by Glen Stansberry of LifeDev (feed). 集中注意力并不是一件很容易的事情,尤其是处在当前这个充满诱惑和纷扰的世界里。下面是继续告诉大家一些有帮助的方法: 7. Plan your day to the T…

Java——网络编程三要素

* A:计算机网络* 是指将地理位置不同的具有独立功能的多台计算机及其外部设备,通过通信线路连接起来,在网络操作系统、网络管理软件及网络通信协议的管理和协调下,实现资源共享和信息传递的计算机系统。* 其实我们这些网,之所以能…

python安全攻防---爬虫基础--re解析数据

0x01 re基础 使用re模块,必须先导入re模块 import refindall():匹配所有符合正则的内容,返回的是一个列表 import restr "我的电话:10086,女朋友电话:11011" list re.findall(\d,str) print…

BSP for good 3d engine

1.open sourcehttp://irrlicht.sourceforge.net/downloads/ 2.不错的小材质http://www.permadi.com/tutorial/webgraph/index.html 3.java bsp display(demo):http://www.symbolcraft.com/graphics/bsp/index.php http://www.faqs.org/faqs/graphics/bsptree-faq/ 4.a bps ill…

Java InputStreamReader getEncoding()方法及示例

InputStreamReader类的getEncoding()方法 (InputStreamReader Class getEncoding() method) getEncoding() method is available in java.io package. getEncoding()方法在java.io包中可用。 getEncoding() method is used to get the encoding name avail for this InputStrea…

python安全攻防---爬虫基础---BeautifulSoup解析

0x01 基础 使用bs4首先要安装,安装后导入 import bs4bs对象有两个方法,一个是find,另一个是find_all find(标签名,属性值):只返回一个,返回也是bs对象,可以继续用find…