Suppose 1000 processes are running on the system out of those
if you have to show only certain process ids which command
will you use?
Answers were Sorted based on User's Feedback
Answer / c sivakumar. kumarsiva46@yaho
pgrep -fl <scriptname> This command will show respective
process alone.
Example:-
ready> pgrep -fl genericShip.pl
(output following below)
11607 /usr/local/bin/perl /forms1/prodenv/genericShip.pl
Is This Answer Correct ? | 0 Yes | 1 No |
Answer / aseem
It is up to you, how you want. For example suppose you want
to display a range like PID from 1500 to 2000 then
ps -ef | grep '[1500 - 2000]'
Is This Answer Correct ? | 0 Yes | 4 No |
Is grep faster than awk?
What is the function of grep command in unix?
what is difference between unix and linux?
If JFS file system is 100% full how we can increase the file system ?
How are UNIX file permissions represented?
how to remotely move a file ??? that mean how to move a file one machine to another machine ???
How we will execute previous command in vi editor?
How to rename files and folders?
How do you find path of a directory? Give its syntax.
what is the use of ls -l command & what is the information it gives about user ?
What is the comma to display different lines that are found when compare two files?
What is the difference between a hard link and a soft link in Unix?