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 |
Give a regular expression that finds two things, try to come up with regular expressions that find each individually using "egrep" command?
Write a command to kill the last background job?
What is in grep command?
Give Command that will move a single file called "unix.txt"
How is the command '$cat file2 ' different from '$cat >file2 and >> redirection operators ?
Sorry to all Technical person for mistake of Question. Now i am post currect question Why copied file permission is changed in destination. When i give all permission i.e 777 to file and copy that to other location in destination the permission is 755. But if give permission 555 in destination that file permission is 555 and if give permission 444 to file after copy in destination the file permission is 444. These all are happening in normal user. How the umask value is calculate here really i am not understand. Please write the proper answer. Thanks in Advance
What are the commands in UNIX to list the files in a Directory?
What will the following command do?
How do I use grep to find a file?
Which Command is Used for temprary switch User?
How would you change all occurrences of a value using VI?
What is the use of find command in unix?