what is the use of "fg" command ?

Answer Posted / padmanaban

fg will get the process from background

Is This Answer Correct ?    8 Yes 3 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:

1753


Describe the zip/unzip command using gzip.

604


How do I run a whois command?

594


What does the “echo” command do?

621


Write a command that will find all text files in a directory such that it does not contain the word "amazing" in any form (that is, it must include the words amazing, amazing, or amazing)?

949






How to find $ai_serual resolved path by using unix

1020


What is the first character of the output in ls l command?

626


What is the command to compare two files in unix?

615


What is in grep command?

640


What are awk commands?

578


What is the use of tee command?

563


Using unix command how to display no of records in oracle?

599


What is the pipe command?

571


What are filter commands in unix?

547


How do I find previous commands in unix?

592