How to put a job in background & bring it to foreground?

Answers were Sorted based on User's Feedback



How to put a job in background & bring it to foreground? ..

Answer / naveen badam

To run a job in back ground type & at the end of the command
To bring the process to the foreground type fg pid
Pid u can find out by typing jobs cmd

Is This Answer Correct ?    4 Yes 2 No

How to put a job in background & bring it to foreground? ..

Answer / kishore devkate

we can put a job in background by putin & symbol at the end
of the line on the command promt.
example:
#cp -r /var/* /tmp &

We can pull the background job in the foreground by fg
command and pid, before that we have to get the process ID
how to get the process ID see below example.
Example:
#jobs
1+ cp -r /var/* /tmp &
now u can get the job ID then u can bring the job in
foreground see below example

Example:

#fg 1

cp -r /var/* /tmp ----now its show like this

Is This Answer Correct ?    2 Yes 0 No

How to put a job in background & bring it to foreground? ..

Answer / srinivas kalvacherla

Consider one ex.
#cp -r /etc/* /directory &
'&' it takes to background
#ps -ef
check the process that is running in the background
#%cp
to bring to foreground.
Regards
kalvacherla.srinivas@gmail.com

Is This Answer Correct ?    0 Yes 3 No

Post New Answer

More Unix AllOther Interview Questions

What is INODE?

6 Answers   BMC,


What is paging?

2 Answers   BMC,


how can we create the script in crontab at mid night on sunday,satuarday,fiday 0n monyh october,november,january? please give me answer if anybody knows ? because on important purpose.

2 Answers  


What is the job responsibility of a System Administrator (UNIX/LINUX),briefly describe (Also point out system admin's daily job details),specify job type & job description?

2 Answers   HP, ICS Integrated Computer Solutions, TCS,


How do you create special files like named pipes and device files?

1 Answers   Wipro,






Explain iostat, vmstat and netstat.

2 Answers  


What are permissions in UNIX?

5 Answers   BMC, University,


What is FTP?

5 Answers   BMC,


How do you use Unix for Backend Testing ?

1 Answers   Wipro,


How to remove weird filenames?

1 Answers  


In Unix inter process communication take place using?

3 Answers   TCS,


How are devices represented in UNIX?

2 Answers  


Categories