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 |
What is an Environment Variable?
If we want to see first 35 lines of a file which command we have to use?
What UNIX command will control the default file permissions when files are created?
what is the use of "grep" command?
which script will invoke first ,when /etc/init.d starts
what does a process mean?
What is the comma to display different lines that are found when compare two files?
How to use grep command to list find the records of a file containing 10 different strings?
write grep commands to select the lines that have exactly two characters
What command is used to replace the existing string with some other?
What do chgrp command do?
How do you execute a UNIX command in the background?