How do you find out all processes that are currently
running in UNIX OS?
Answers were Sorted based on User's Feedback
Answer / abhijit
ps -fu <username>
or
ps -ef | grep username
Thanks
- @bhijit kulkarni
| Is This Answer Correct ? | 3 Yes | 0 No |
why metadb requires a seperate slice to create Solaris volume manager
What difference between cmp and diff commands?
how to change a normal file into hidden file
Give a regular expression that finds two things, try to come up with regular expressions that find each individually using "egrep" command?
What are some command words?
what is the command to get help on a UNIX terminal?
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<stdlib.h> # include <stdio.h> 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:
How do I use grep to search for a file?
How do you move a process which is running background to foreground?
Write a command that will output the sorted contents of a file named in.txt and place the output in another file named out.txt, while at the same time excluding duplicate entries.
What will the following command do?
What is the command to compare two files in unix?