-
What is redirection?
Directing the flow of data to the file or from the file for input or output.Example : �ls > wc
-
How to terminate a process which is running and the specialty on command kill 0?
With the help of kill command we can terminate the process.Syntax: kill pidKill 0 - kills all processes in your system except the login shell.
-
What is a pipe and give an example?
A pipe is two or more commands separated by pipe char '|'. That tells the shell to arrange for the output of the preceding command to be passed as input to the following command. Example : ls -l | prThe output for a command ls is the standard input of pr. When a sequence of commands are combined using pipe, then it is called pipeline.
-
Explain kill() and its possible return values?
There are four possible results from this call:�kill()� returns 0. This implies that a process exists with the given PID, and the system would allow you to send signals to it. It is system-dependent whether the process could be a zombie.�kill()� returns -1, �errno == ESRCH� either no process exists with the given PID, or security� enhancements are causing the system to deny its existence. (On���� some...
-
What is relative path and absolute path?
Absolute path : Exact path from root directory.Relative path �: Relative to the current path.