Shell background processes: what do characters in termination message mean?
I had three background processes, and here’s what I’ve got:
[1] Done zcat jan.txt.gz > j
[2]- Done zcat feb.txt.gz > f
[3]+ Done zcat mar.txt.gz > m
What do those ” “, “+”, “-” mean? Never noticed those before, it was always “+” I guess?
The + means that it is the most recent background process. This is the one that will become the foreground process if you type fg.
I don’t know about the - but I suspect it the one prior to the most recent one. This would be the one that would become the + if you kill the most recent one.
There may also be a current/old system the way cd - works.
Ah yes, the manual backs me up on both points.
You can use fg + and fg - to bring these jobs to the foreground.
You can also get a list of all your currently running jobs and their statuses with the jobs command.
Check more discussion of this question.
Related posts:
Leave a comment
Recent Posts
Tags
active-directory
amazon-ec2
apache
apache2
backup
bash
centos
cisco
command-line
debian
dns
email
exchange
firewall
iis
iis7
iptables
linux
macosx
monitoring
mysql
networking
nginx
performance
permissions
php
postfix
raid
security
sql-server
sql-server-2005
sql-server-2008
ssh
ssl
ubuntu
unix
virtualization
vpn
webserver
windows
windows-7
windows-server-2003
windows-server-2008
windows-server-2008-r2
windows-xp





