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 can i know my Filesystem and its current usage in my prod UNIX system?
how to make IGNITE-BACKUP in HP-UX?
why unix commands can be divided into internal and external commands?
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,
How to redirect standard error to a file?
What is the syntax of grep command and what is its use?
distinguish between physical addresses and logical address?
23 Answers College School Exams Tests, CTS, Infosys, SAX, TATA, TCS,
What Command will remove a Directory in UNIX?
How do I clear my terminal history?
how will you login one server's shell prompt to an another server?
5 Answers Cosmic Infotech, Perot Systems,
what is the command to list all files in a directory, including the hidden files in UNIX ?
Which command should you use to find the remaining disk space in unix server?