单项选择题
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
                    
                            点击查看答案&解析
                
                
            相关考题
- 
                                    单项选择题
                                    
 An operator needs to run a script which will write standard output and standard error to different files. Which of the following commands will successfully perform this task?()
 A. myscript.ksh 1>/tmp/log/script.log 2>/tmp/log/script.err 
 B. myscript.ksh $1>/tmp/log/script.log $2>/tmp/log/script.err
 C. myscript.ksh 1>/tmp/log/script.log 2>1 /tmp/log/script/err
 D. myscript.ksh 2>1 /tmp/log/script.log 2> /tmp/log/script.err
- 
                                    单项选择题
                                    
 Which of the following will permit an operator to retrieve console log output from the command line?()
 A. lscons -l 
 B. cat /var/conslog
 C. alog -t console -o
 D. lslog /var/adm/conslog
- 
                                    单项选择题
                                    
 Which of the following will cancel only job 123 from printer lp01?()
 A. lpstat -d 123 lp01 
 B. enq -d 123 -p lp01
 C. qcan -x 123 -P lp01
 D. lpcan -j 123 -p lp01
 
             
             
                
            