Archive for January 6, 2012
bg and fg jobs
January 6, 2012
4 comments
1. Start a job into backgroud, use “&”
# backupFile.sh &
2. Switch a running job into backgroud
- Ctrl + z
- # bg, and Enter
3. Bring a job from background to frontground
- # jobs –> get the job number, eg. [3]+ backupFile.sh
- # fg 3 –> the job 3 goes to frontground