Choose a topic to test your knowledge and improve your Unix/Lunux skills
Which command executes ‘command’ in place of the current process instead of creating a new process?
Which one of the following statement is not true?
Which command is used to close the vi editor?
In vi editor, the key combination CTRL+f
Which vi editor command copies the current line of the file?
Which command is used to delete the character before the cursor location in vi editor?
Which one of the following statement is true?
Which command searches the string in file opened in vi editor?
In vi editor, which command reads the content of another file?
Which command shows all the abbreviations in vi editor?
Which command sets the number for all lines?
What is sed?
Sed maintains the hold space (a buffer) to
Which is the correct syntax for sed on command line?
If any sed command does not specify any address then the command is applied to
If no file is specified in sed command then
Which sed command deletes the specified address range
Which command is used to replace word ‘cat’ (already present in the file) with ‘mouse’ at all places in a file ‘old.txt’ and save the result in a new file ‘new.txt’?
Which command will delete all the blank lines in file old.txt?
The command “sed -n ‘/sanfoundry/p’ old.txt” will
Which option is used by sed to specify that the following string is an instruction or set of instructions?
Which one of the following is not true?
An awk program can be run by
Which one of the following is not true?
What is the meaning of $ sign in awk programming?
In awk program, the statement “print” with no items
The print and printf statements can be told to send their output to other place except standard output, is called
The command “awk {print $1} san.txt” will
What is the output of the command awk ‘BEGIN {printf “%c ”,65}’
Which one of the following statement is not true about the format-control letters for printf statement in awk program?
What is expression in awk programming?
Which one of the following is not true?
All numeric values are represented within awk in
Concatenation is performed by
The comparison expression x ~ y will true if
The break statement
Which statement skips over the rest of the loop body, causing the next cycle around the loop to begin immediately?
The next statement
If the argument is supplied to the exit statement,
Which statement instructs gawk to stop processing the current data file?
The command awk {if (“9″>”10”) print sanfoundry else print linux}
Which one of the following statement is not true?
What is the difference between the built-in functions rand() and srand() in awk programming?
Which built-in function returns the arctangent of a/b in radians.
Which built-in function divides string into pieces seperated by fieldsep and stores the pieces in array?
The built-in function tolower()
In awk, the built-in variable FS is
What is FNR?
RSTART is set by invoking the
Which one of the following is used by awk to control the conversion of numbers to string?