单选题Operator needs to remove all leading comments # from shell.script file. Which of the following vi sub-command can achieve this?()A :r/^#//gB :1,$ s/^#//gC :sed s/^#//gD :sub s/^#//g

题目
单选题
Operator needs to remove all leading comments # from shell.script file. Which of the following vi sub-command can achieve this?()
A

:r/^#//g

B

:1,$ s/^#//g

C

:sed s/^#//g

D

:sub s/^#//g

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

第1题:

The system administrator has requested that all setuid/setgid bits be removed from executables in application filesystem. Which command will achieve this?()

A. chmod -R o-s /application

B. chmod -R ug-s /application

C. chmod -R -s -o /application

D. chmod -R -s -ug /application


参考答案:B

第2题:

After performing a modification on the /etc/ssh/sshd_config file the operator needs to reinitialize the secure shell daemon to enable the new settings. Which of the following is the correct way to achieve this?()

A. Use refresh -s sshd

B. Use init.sshd /etc/rc.ssh

C. Use /usr/sbin/sshd -restart

D. Use stopsrc -s sshd and then startsrc -s sshd


参考答案:D

第3题:

A technician needs to replace a computer’s hard drive. Which of the following should thetechnician do FIRST?()

A. Remove network connections

B. Remove the RAM

C. Self ground on the computer case

D. Disconnect power to PC


参考答案:D

第4题:

After performing a modification on the /etc/ssh/sshd_config file the operator needs to reinitialize the secure shell daemon to enable the new settings. Which of the following is the correct way to achieve this?()

  • A、Use refresh -s sshd
  • B、Use init.sshd /etc/rc.ssh
  • C、Use /usr/sbin/sshd -restart
  • D、Use stopsrc -s sshd and then startsrc -s sshd

正确答案:D

第5题:

给定关系R(A,B,C,D,E)与S(A,B,C,F,G),那么与表达式等价的SQL语句如下:select(请作答此空)from R,S where( );

A.R.A,R.B,R.E,S.C,G
B.R.A,R.B,D,F,G
C.R.A,R.B,R.D,S.C,F
D.R.A,R.B,R.D,S.C,G

答案:B
解析:
本题考查关系代数运算与SQL语言的对应关系。注意本题中R与S是做自然联接操作,操作时会将R与S中相同字段名做等值联接,并将结果集去重复。所以R与S自然联接后的结果包括以下属性:R.A,R.B,R.C,D,E,F,G。关系代数选择条件为“1<6”,即R.A

第6题:

Operator needs to remove all leading comments from shell.script file. Which of the following vi sub-command can achieve this?()

A. :r/^#//g

B. :1,$ s/^#//g

C. :sed s/^#//g

D. :sub s/^#//g


参考答案:D

第7题:

The following output occurs on Router R2. Which of the following statements can be confirmed as true based on the output from R2?()R2 show ip policyInterface Route mapFa0/0 RM1Fa0/1 RM2S0/0/0 RM3

A. R2 will forward all packets that enter Fa0/0 per the PBR configuration.

B. R2 will use route map RM2 when determining how to forward packets that exit interface Fa0/1.

C. R2 will consider using PBR for all packets exiting S0/0 /0 per route map RM3.

D. R2 will consider using PBR for all packets entering S0/0/0 per route map RM3.


参考答案:D

第8题:

Which of the following can an operator use to shutdown a system into single-user mode?()

A.shutdown -d

B.shutdown -s

C.shutdown -m

D.shutdown -Fr -s 1


参考答案:C

第9题:

以下哪条vi命令能将文档5-20行间出现的abc替换成为cba()。

  • A、1,$s/abc/cba/g
  • B、5,20/abc/cba/g
  • C、5-20s/abc/cba/g
  • D、5,20s/abc/cba/g

正确答案:D

第10题:

EPON系统可以提供上下行对称带宽为()Gb/S。

  • A、1G
  • B、10G
  • C、2.5G
  • D、1.25G

正确答案:D

更多相关问题