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 |
How to replace the exact word in vi editor?? suppose a file contains words like amaze,amazed,amazement in some of the line.But i want to replace only 'amaze' with delight but don't wanna replace amazed or amazement. thanks
6 Answers Polaris, Tech Mahindra,
What is the use of tee command?
What is the use of cut command in unix?
what is ls -ltd?
How to open a Database using Unix Command Please Do Reply
How does one process we can start an executable file? How to get the PID process, which we started?
What command is used to check the current users?
Explain command to show the space allocation of files?
who to change the duplex setting of network interface in command line
What does 'mkdir' command do in UNIX?
If JFS file system is 100% full how we can increase the file system ?
What command would users use to see what file one page at a time in UNIX?