Given that the current directory is empty, and that the user

题目
单选题
Given that the current directory is empty, and that the user has read and write privileges to the current directory, and the following: Which statement is true?()
A

Compilation fails.

B

Nothing is added to the file system.

C

Only a new file is created on the file system.

D

Only a new directory is created on the file system.

E

Both a new file and a new directory are created on the file system.

如果没有搜索结果或未解决您的问题,请直接 联系老师 获取答案。
相似问题和答案

第1题:

Given that the current directory is empty, and that the user has read and write permissions, and the following:Which statement is true?()

A.Compilation fails.

B.The file system has a new empty directory named dir.

C.The file system has a new empty directory named newDir.

D.The file system has a directory named dir, containing a file f1.txt.

E.The file system has a directory named newDir, containing a file f1.txt.


参考答案:E

第2题:

Which command will resolve the problem shown in the exhibit?()

A. user@router> request system configuration rescue save

B. user@router# request system configuration rescue save

C. user@router> file copy current /config/rescue.conf

D. user@router# file copy current /config/rescue.conf


参考答案:A

第3题:

在UNIX系统中,Shell程序(21)实现显示用户主目录以及当前命令的进程标识符。

A.echo UserHome directory:$LOGNAME echo Current shell's PID:$$

B.echo UserHome directory:$HOME echo Current shell'PID:$@

C.echO UserHOme directOIy:$LOGNAME echo Current shell'sPID:$@

D.echo UserHome directory:$HOME echo Current shell'sPID:$$


正确答案:D
解析:$$表示当前进程的进程标识号(PID),$@是用双引号引用命令行上的所有参数,$HOME表示用户的主工作目录,$LOGNAME表示用户名。

第4题:

A user received an email from their bank asking them to login and verify their personal information.The user complies and fills in the requested information. Days later the user notices their checking account is empty. This is a result of which of the following?()

  • A、Spam
  • B、Phishing
  • C、Adware
  • D、A Trojan

正确答案:B

第5题:

User2 is complaining that he is unable to list the contents of a directory. What is the most likely cause?()

A. User2 needs write permission to the directory.

B. User2 needs both read and write permissions to the directory.

C. User2 needs both read and execute permissions to the directory.

D. User2 needs both write and execute permissions to the directory.


参考答案:C

第6题:

Write some bash commands to list all the php scripts (*.php) in the current directory and its

sub-directory. Try to use as many different methods as possible.


正确答案:
 

第7题:

在Unix系统中,Shell程序(57)实现显示用户主目录以及当前命令的进程标识符。

A.echo UserHome directory:$LOGNAME echo Current shell's PID:$$

B.echo UserHome directory:$HOME echo Current shell's PID:$@

C.echo UserHome directory:$LOGNAME echo Current shell's PID:$@

D.echo UserHome directory:$HOME echo Current shell's PlD:$$


正确答案:D
解析:Unix系统有很多种产品,每种产品的命令略有不同,但基本一致。Shell环境定义了Unix与用户进行交互的方式。环境特性由包含名称和值的环境变量定义。以下是一些常见的缺省设置的环境变量。(1)HOME定义用户的主目录;CD命令的缺省目录。(2)LOGNAME包含用户名。(3)MAIL确定系统查找邮件的位置。(4)PATH设置系统用于查找并执行命令的目录。(5)SHELL决定运行的shell。(6)TERM指定准备输出的终端类型。(7)TZ提供当前时区及其与格林威治标准时间的差值。(8)EDITOR确定缺省的编辑器。(9)DISPLAY指定窗口显示主机。在Shell命令中,echo命令可以显示Shell变量的内容或值。在Shell中有一些特殊意义的变量,由Shell自己管理,这些特殊变量有:(1)$#内存位置参数的个数。(2)$$当前命令的进程标识符。(3)$1最后一个后台进程的标识符。(4)$*所有位置参数字符串。(5)$@与$*相似(但与$*的值略有区别)。

第8题:

Given that the current directory is empty, and that the user has read and write privileges to the current, and the following:Which statement is true?()

A.Compilation fails.

B.Nothing is added to the file system.

C.Only a new file is created on the file system.

D.Only a new directory is created on the file system.

E.Both a new file and a new directory are created on the file system.


参考答案:B

第9题:

How do oyu write the current candidate configuration to the permanent storage media?()

  • A、[edit]   user@router# save /var/tmp/current.conf
  • B、[edit]   user@router# write /var/tmp/current.conf
  • C、[edit]   user@router# commit /var/tmp/current.conf
  • D、[edit]  user@router# dump /var/tmp/current.conf

正确答案:A

第10题:

Which of the following commands is used to delete an empty directory?()

  • A、RD
  • B、EDIT
  • C、DIR
  • D、FORMAT

正确答案:A

更多相关问题