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

Answer Posted / william

fg [job_spec]
eg. fg emacs

Is This Answer Correct ?    5 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

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:

1758


What are filter commands in unix?

553


Which unix command lists files/folders in alphabetical order?

614


How do you grep recursively?

555


What are the differences among a system call, a library function, and a unix command?

567






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

616


Does cp command overwrite files?

620


How do I use nslookup?

572


What is rmdir command?

551


Which command is used to copy files?

556


What is pipe command in unix?

669


Why is it called a shebang?

568


Is grep faster than awk?

557


What is nr in awk command?

599


What is grep in bash?

584