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



Suppose 1000 processes are running on the system out of those if you have to show only certain pr..

Answer / linuxdemon

ps -ef | grep pid

Is This Answer Correct ?    13 Yes 2 No

Suppose 1000 processes are running on the system out of those if you have to show only certain pr..

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

Suppose 1000 processes are running on the system out of those if you have to show only certain pr..

Answer / suvarna

top command can also be used

Is This Answer Correct ?    0 Yes 2 No

Suppose 1000 processes are running on the system out of those if you have to show only certain pr..

Answer / bhaskar

ps -aef grep pid

Is This Answer Correct ?    1 Yes 4 No

Suppose 1000 processes are running on the system out of those if you have to show only certain pr..

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

Post New Answer

More Unix Commands Interview Questions

What command would users use to see what file one page at a time in UNIX?

7 Answers   IBM,


How do you find which version and name of unix you are using at the command prompt?

7 Answers  


Enumerate some of the most commonly used network commands in unix?

0 Answers  


How do I search a whole word in vim?

0 Answers  


What does grep v do?

0 Answers  






how to remotely move a file ??? that mean how to move a file one machine to another machine ???

10 Answers   Altair,


in UNIX,How do you check for processes started by particular user suppose the user name is 'suresh'?

6 Answers  


How to find the files that are accessed before 10 minutes?

5 Answers   Amazon,


What does mkdir up2date; touch outdated up2date do?

2 Answers  


What happens when we execute a unix command?

0 Answers  


What is the search command in unix?

0 Answers  


How does pipe () work?

0 Answers  


Categories