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 the difference between pipe(|) and tee command..
which command is used to change group?
what is the cmd to display the last exit status in UNIX?
how to check a file system type
Write a command that will allow a unix system to shut down in 15 minutes, after which it will perform a reboot.
What does the md command do?
Give a regular expression that finds two things, try to come up with regular expressions that find each individually using "egrep" command?
What is difference between grep and find command in unix?
Name the unix command to find how many days the server has been up.
How can you copy files or directories?
what is the advaantage of each user having its own copy of the shell?
How do you repeat a command in terminal?