Shell Scripting Interview Questions & Answers part 4
Q: – Explain “STDERR”?
STDERRStandard Error. A special type of output used for error messages. The file descriptor for STDERR is 2.
Q: – Explain “Escape Sequence”?
An escape sequence is special sequence of characters that represents another character.
Q: – Explain “Output Redirection” in shell scripting?
In UNIX or Linux, the process of capturing the output of a command and storing it in a file is called output redirection because it redirects the output of a command into a file instead of the screen.
Q: – Explain “Input Redirection” in shell scripting?
In UNIX or Linux the process of sending input to a command from a file is called input redirection.
Q: – What is “Field separator”?
The field separator controls the manner in which an input line is broken into fields. In the shell, the field separator is stored in the variable IFS. In awk, the field separator is stored in the awk variable FS.
Q: – What is “Library”?
A file that contains only functions is called a library. Usually libraries contain no main code.
Submitted By:-Naveen Kumar Email-ID: – email@example.com