其他

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

参考答案和解析
参考答案:D
如果没有搜索结果,请直接 联系老师 获取答案。
相似问题和答案

第1题:

An Operator is in /var/tmp and needs to go to /var/adm. Which of the following is correct?()

A. cd /adm

B. cd ./adm

C. cd ../adm

D. cd /../adm


参考答案:C

第2题:

An operator needs to change from the /usr/bin to the /var/spool directory. Which of the following commands will accomplish this?()

A. cd /var/spool

B. lcd /var/spool

C. cd /usr/bin /var/spool

D. lcd /usr/bin /var/spool


参考答案:A

第3题:

Use regex to remove all html tags from a file.


正确答案:
 

第4题:

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

第5题:

Which of the following procedures should occur before removing a failing disk from a volume group?()

  • A、Veryoff the volume group
  • B、Unmount any filesystems on the disk
  • C、Remove all physical partitions on the disk
  • D、Unmount mirrored filesystems from the disk

正确答案:B

第6题:

An operator wants to move all files inside the directory /home/operator to the current directory. Which of the following commands will complete the task?()

A. mv /home/operator .

B. mv /home/operator/* .

C. mv /home/operator ../..

D. mv /home/operator/all ../home/operator


参考答案:B

第7题:

Which of the following statements is TRUE regarding crane operations ________.

A.Radio communications allow the crane operator to disregard the use of hand signals

B.The crane operators and signalman must be familiar with the correct hand signals

C.The forward cranes can be operated from the bridge

D.The aft cranes can be operated from the aft steering station


正确答案:B

第8题:

Which of the following procedures should occur before removing a failing disk from a volume group?()

A.Veryoff the volume group

B.Unmount any filesystems on the disk

C.Remove all physical partitions on the disk

D.Unmount mirrored filesystems from the disk


参考答案:B

第9题:

A technician is attempting to remove a number of viruses from an infected system. The antivirus software in use is fully updated and has detected the viruses. However, a message stating that the file is in use appears when the technician tries to quarantine or delete the infected files. Which of the following can be done to resolve this issue?()

  • A、Change the permissions on the file.
  • B、End the running process.
  • C、Run the antivirus scan again.
  • D、Use the command line to delete the file.

正确答案:B

第10题:

An operator wants to move all files inside the directory /home/operator to the current directory. Which of the following commands will complete the task?()

  • A、mv /home/operator .
  • B、mv /home/operator/* .
  • C、mv /home/operator ../..
  • D、mv /home/operator/all ../home/operator

正确答案:B

更多相关问题