How do you move a process which is running background to
foreground?

Answer Posted / richa

%fg %jobnumber

'jobnumber' is the number of the job which u'll get by
running 'jobs' command.

Is This Answer Correct ?    7 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Which command can you use to find the currently running process in unix server?

589


Why is it called grep?

563


What is in grep command?

650


How does shebang work?

594


What does find command return in unix?

597






What is the behavioural difference between cmp and diff commands?

677


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

542


What does #!/ Bin sh do?

595


What is used to type command?

544


Explain ‘library functions’ with respect to unix commands?

604


What are the unix commands?

560


Enumerate some of the most commonly used network commands in unix?

620


What happens when we execute a unix command?

600


What are file commands?

656


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:

1764