|
231. If One Process Is Inserting Data Into Your MySQL Database? How Will You Check How Many Rows Inserted Into Every Second?
Date Posted: 07/02/2012
Ans: “watch” command in UNIX is repeatedly used to execute command provided with specified delay.
|
|
|
232. What Is Ephemeral Port In UNIX?
Date Posted: 07/02/2012
Ans: Ephemeral ports are port used by Operating system for client sockets. There is a specific range on which OS can open any port specified by ephemeral port range.
|
|
|
233. How Do You Find which Remote Hosts Are Connecting To Your Host On A Particular Port Say 10123?
Date Posted: 07/02/2012
Ans: By using netstat command execute netstat -a | grep “port” and it will list the entire host which is connected to this host on port 10123.
|
|
|
234. How Do You Find Which Processes Are Using A Particular File?
Date Posted: 07/02/2012
Ans: By using ls of command in UNIX. It will list down PID of all the process which is using a particular file.
|
|
|
235. What Is The Use Of ‘grep’ Command?
Date Posted: 07/02/2012
Ans: grep’ is a pattern search command. It searches for the pattern, specified in the command line with
appropriate option, in a file(s).
Syntax: grep
Example: grep 99mx mcafile
|
|
|
Ans: 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 ...
|
|
|
237. How To Terminate A Process Which Is Running And The Specialty On Command Kill 0?
Date Posted: 07/02/2012
Ans: With the help of kill command we can terminate the process.
Syntax: kill pid
Kill 0 – kills all processes in your system except the login shell.
|
|
|
238. What Is Redirection?
Date Posted: 07/02/2012
Ans: Directing the flow of data to the file or from the file for input or output.
Example : ls > wc
|
|
|
239. What Are Shell Variables?
Date Posted: 07/02/2012
Ans: Shell variables are special variables, a name-value pair created and maintained by the shell.
Example: PATH, HOME, MAIL and TERM
|
|
|
240. How Does The Kernel Differentiate Device Files And Ordinary Files?
Date Posted: 07/02/2012
Ans: Kernel checks ‘type’ field in the file’s inode structure.
|
|