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 are bash commands?

0 Answers  


How to delete a directory containing files and folders?

3 Answers  


which script will invoke first ,when /etc/init.d starts

1 Answers  


How do I find previous commands in unix?

0 Answers  


How does the user view the contents of a text file in UNIX?

9 Answers   IBM,






How do you stop a running process?

7 Answers  


what do you understand bythe term 'de-mountable volumes'?

2 Answers   Infosys,


Describe the zip/unzip command using gzip.

0 Answers  


Which Command is Used for temprary switch User?

5 Answers   BitWise, IBM,


What is unix command line?

0 Answers  


What does #!/ Bin sh do?

0 Answers  


what is the shell for dos,nt operating systems?

1 Answers  


Categories