⟩ Which command removes a directory from directory stack? a) dirs b) popd c) pushd d) rm
b) popd
b) popd
Sed maintains the hold space (a buffer) to a) copy the each line of input b) save the data for later retrieval c) both (a) and (b) d) none of the mentioned
What is sed? a) a non-interactive stream editor b) an IDE c) a hex editor d) none of the mentioned
If any sed command does not specify any address then the command is applied to a) each input line b) none of the input line c) last input line d) none of the mentioned
Which is the correct syntax for sed on command line? a) sed [options] '[command]' [filename] b) sed '[command]' [options] [filename] c) sed [filename] [options] '[command]' d) sed '[command]' [filename] [options]
Which command sets the number for all lines? a) set li b) set ln c) set nu d) set nl
Which command shows all the abbreviations in vi editor? a) ab b) abb c) show d) none of the mentioned
In vi editor, which command reads the content of another file? a) read b) r c) ex d) none of the mentioned
Which command will delete all the blank lines in file old.txt? a) sed '/d' old.txt b) sed '/^/d' old.txt c) sed '/^$/d' old.txt d) sed '/^*/d' old.txt
Which command searches the string in file opened in vi editor? a) / or ? b) f or F c) t or T d) none of the mentioned
Which one of the following statement is true? a) autoindentation is not possible in vi editor b) autoindentation can be set using the command 'set ai' c) autoindentation can be set using the command 'set noai' d) autoindentation is set by default in vi editor