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

相关考题:

Use regex to remove all html tags from a file.

A technician needs to replace a computer’s hard drive. Which of the following should thetechnician do FIRST?() A. Remove network connectionsB. Remove the RAMC. Self ground on the computer caseD. Disconnect power to PC

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

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

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

Which maintenance functions can a GMDSS Radio Operator perform ________.A.The Operator can make fine internal adjustments to the transmitter as long as the output power does not change by more than one percentB.The Operator is responsible for ensuring that INMARSAT antennas are free of built-up soot and clear of obstaclesC.All levels of maintenance must be performed by a licensed GMDSS Radio MaintainerD.The Operator may install an EPROM in order to ensure that the equipment continues to operate within legal constraints

In order to discharge a CO2 portable fire extinguisher, the operator must FIRST ______.A.invert the CO2 extinguisherB.squeeze the two trigger handles togetherC.remove the locking pinD.open the discharge valve

It is the responsibility of the crane operator to, at all times, be aware of the location of the __.A.loadB.hookC.boomD.All of the above

Finally, a wire brush should be used on all bare ()to remove the last of the scale.A、metalB、woodC、cementD、all the above

Before the()of the derrick, check all the tackle closely.A、operationB、operateC、operatedD、operator

What is the difference between thE.remove and thE.purge action with the dpkg command?()A、 -remove removes the program, -purge also removes the config filesB、 -remove only removes the program, -purge only removes the config filesC、 -remove removes a package, -purge also removes all packages dependent on itD、 -remove removes only the package file itself, -purge removes all files related to the package

A technician is preparing to update the BIOS on a laptop. Which of the following should thetechnician do to prevent problems during the update?()A、Remove all of the memoryB、Plug in the AC adapterC、Remove the hard drive and optical driveD、Clear the partitions on the hard drive

A technician needs to replace a computer’s hard drive. Which of the following should thetechnician do FIRST?()A、Remove network connectionsB、Remove the RAMC、Self ground on the computer caseD、Disconnect power to PC

The operator needs to execute a long-running shell script. How can the script be executed so the operator does not have to wait until it is complete to access the command prompt?()A、./script.kshB、nohup ./script.kshC、run -b ./script.kshD、./script.ksh nohup.out

After a successful recovery, the system administrator wishes to remove the fileset bos.net.tcp.server and all dependent software. After running an lslpp command, it is verified that the fileset is in the BROKEN state. What is the correct method for deinstallation?()A、Use installp -u command with -g to remove the fileset and all dependent software.B、Use installp -c command to commit fileset; use installp command with -g to remove the fileset and all dependent software.C、Use installp -C command to perform cleanup of fileset; use install command with -g to remove the fileset and all dependent software.D、Use installp -a command to apply fileset; use installp command with -g to remove the fileset and all dependent software.

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

An Operator is in /var/tmp and needs to go to /var/adm. Which of the following is correct?()A、cd /admB、cd ./admC、cd ../admD、cd /../adm

Which statement is true regarding subqueries?()A、The LIKE operator cannot be used with single-row subqueries B、The NOT IN operator is equivalent to IS NULL with single-row subqueries C、=ANY and =ALL operators have the same functionality in multiple-row subqueries D、The NOT operator can be used with IN, ANY, and ALL operators in multiple-row subqueries

You have an Exchange organization that contains Exchange 2000 Server Service Pack 3 (SP3), Exchange Server 2003 Service Pack 2 (SP2), and Exchange Server 2007 Service Pack 1 (SP1) servers. You need to transition the organization to Exchange Server 2010.  What should you do first?()A、Remove all Exchange Server 2007 SP1 servers from the organization.B、Remove all Exchange 2000 Server and all Exchange Server 2003 servers from the organization.C、Remove all Exchange 2000 Server servers from the organization,and then upgrade all Exchange server 2007 servers to SP2.D、Remove all Exchange Server 2003 servers from the organization,and then upgrade all Exchange server 2007 servers to SP2.

单选题What is the difference between thE.remove and thE.purge action with the dpkg command?()A -remove removes the program, -purge also removes the config filesB -remove only removes the program, -purge only removes the config filesC -remove removes a package, -purge also removes all packages dependent on itD -remove removes only the package file itself, -purge removes all files related to the package

单选题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

单选题An operator must check the status of print queues on a regular basis. Which of the following commands can be used to check on all the print queues?()Alslp -aBqchk -ACenq -s ALLDlpstat -p ALL

单选题The operator needs to execute a long-running shell script. How can the script be executed so the operator does not have to wait until it is complete to access the command prompt?()A./script.kshBnohup ./script.kshCrun -b ./script.kshD./script.ksh nohup.out

单选题A system administrator has determined that a recently applied APAR needs to be removed. Which of the following installp options will remove the APAR?()AcleanupBcommitCdeinstallDreject

单选题A System p administrator has determined that a recently applied APAR needs to be removed.  Which of the following installp options will remove the APAR()AcleanupBuninstallCdeinstallDreject

单选题Which statement is true regarding subqueries?()AThe LIKE operator cannot be used with single-row subqueries BThe NOT IN operator is equivalent to IS NULL with single-row subqueries C=ANY and =ALL operators have the same functionality in multiple-row subqueries DThe NOT operator can be used with IN, ANY, and ALL operators in multiple-row subqueries

单选题An administrator is supporting an AIX 6.1 LPAR remotely and needs a tape operator to plug a cable into an Ethernet adapter. The tape operator does not have POWER6 595 knowledge.  What can the administrator do to assist the tape operator to locate the correct adapter?()AAdvise the tape operator to review the hardware service guide.BUse the diag command to set the Ethernet adapter slot LED to flash.CAdvise the tape operator to check the WWN stickers of all Ethernet adapter in the I/O drawers.DCreate a login account for tape operator on the HMC and advise the tape operator to locate the adapter using the GUI step by step.