[prev in list] [next in list] [prev in thread] [next in thread]
List: ilugc
Subject: [Ilugc] 1D1C - bg
From: Dhana Sekar <tkdhanasekar () gmail ! com>
Date: 2013-07-31 15:20:26
Message-ID: CALV9omY1L4pUrjXO9ORcz1ba1dP0djd1_3H+AAo7O+Dm_v2xOQ () mail ! gmail ! com
[Download RAW message or body]
command: bg
usage: bg command is used to place a job in background
syntax: $ bg [-l] [-p] [-x] [job]
l - Report the process group ID and working directory of the jobs
p - Report only the process group ID of the jobs.
x - Replace any job_id found in command or arguments with the
corresponding process group ID,
job - Specifies the job that you want to run in the background.
examples:
1. To list the background jobs
$ bg
2. To run a process in background
$ vlc
press ctrl+z to stop the current job
to move the stopped job to background
$ bg
3. To move the specified job to back ground
$ vlc
press ctrl+z to stop the job
$ sleep 180
press ctrl+z to stop the job
$ sleep 100
press ctrl+z to stop the job
now type
$ jobs
[1] Stopped vlc
[2]- Stopped sleep 180
[3]+ Stopped sleep 100
to make the jobid [2] to run type
$ bg 2
now check with jobs
$ jobs
[1]- Stopped vlc
[2] Running sleep 180 &
[3]+ Stopped sleep 100
4. User can run a job in the background by adding a "&"
symbol at the end of the command.
$ vlc&
$ sleep 200&
$ libreoffice&
regards,
dhanasekar
_______________________________________________
ILUGC Mailing List:
http://www.ae.iitm.ac.in/mailman/listinfo/ilugc
ILUGC Mailing List Guidelines:
http://ilugc.in/mailinglist-guidelines
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic