Wednesday, June 26, 2013

Linux - Starting a process at background

In order to start a Linux process on the background, just put & at the end of the command

For example, to run a sleep command at the background, you do the following

sleep 10000 &

The above will sleep for 10s at the background.

When this command being executed, it will return a PID for the background process.

So, to kill the background process, you can use kill command to kill the background process

kill -09 XXXX

where XXXX is the PID returned for the background process.

Below is a detail screenshot.


No comments:

Post a Comment

Oracle - Reclaim disk space

Oracle does not release disk space even if you had delete the data or tablespace. If you have enterprise manager, you should use it to  rec...