gzip having '&' at the end.

why do we put & at the end of gzip like below.

 
ZIPDIR=/HOME/USR
ZIPFILE=11302009.dat
gzip ${ZIPDIR}/${ZIPFILE} &

Thanks in Advance.

To run it in the background, so you can do other things while it's zipping.

1 Like

Actually "&" told to shell to do this process in background,
If u want to look this process use following command.

fg 1

If u want to send this back to background use following command.

^z ie ctrl+z

Best Luck. :cool:

1 Like