in UNIX,How do you check for processes started by
particular user suppose the user name is 'suresh'?

Answer Posted / raghava

ps -ef | grep 'suresh'

Is This Answer Correct ?    8 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the difference between awk and grep?

631


How do you grep a case insensitive?

620


How do I delete files from command prompt?

659


When i run a programm of orphan process. Instead of getting child's parent (ppid)=1 ..i get 1400 and it varies as per system. How can i findthe right soluion??? My pgm: #include # include int main() { int pid; pid=fork(); if(pid < 0) {exit(-1);} else if(pid==0) { printf("Child Process is Sleeping ..."); sleep(10); printf("Orphan Child's Parent ID : %u ",getppid()); } else { printf("Parent Process Completed ... %u ",getpid()); exit(0); } return 0; } Output:

1849


What is the use of the command 'ls -x chapter[1-5]' ?

767






Explain command to display different lines that are found when compare two files?

764


Are you in or at the office?

706


Name the various commands that are used for the user information in unix.

638


Which command will print your home directory on screen?

664


What is unix command line?

704


What does the command '$ls | wc –l > file1' do?

781


What's a command word?

677


What is the use of find command in unix?

661


What is the command to find hidden files in the current directory?

691


Explain mount and unmount command.

717