How to put a job in background & bring it to foreground?
Answers were Sorted based on User's Feedback
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 |
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 |
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 |
how to set request time out value for name resolution on clients (hp-ux) ?
virtual terminal protocol is an example of which layer and works with which layer?
Explain iostat, vmstat and netstat.
How do you use Unix for Backend Testing ?
In detail elaborate the system? What is driver?
What are the main differences between Apache 1.x and 2.x?
What is the difference between windows environment and Unix environment ?
How to remove weird filenames?
Have you used VI editor?
I am trying to unmount a remote file system,but I do not unmount that file system.How can i know the user name (i.e.,user who is using that file system).....write the command with argument
how to raise a suncase?pls explain step by step?
In this command sqlplus -s username/password what is -S and what's the use..???