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 |
What is file constructing in UNIX/AIX ?
Is this the command to connect oracle from unix? sqlplus -s username/password. Then what is the -S here...????
What are Profilers?
The UNIX shell is.... a).does not come with the rest of the system b).forms the interface between the user and the kernal c) does not give any scope for programming d) deos not allow calling one program from with in another e) all of the above
Explain about Inodes?
How to remove weird filenames?
What UNIX command will control the default file permissions when files are created?
If the terminal is not showing the login prompt,what's the 1st thing you should check?and how do you solve the problem?
How to set Windows as Default OS when Dual Booting Ubuntu?
how to raise a suncase?pls explain step by step?
what happens when we create a file system?
What scripting languages do you know?