Running a process in backgroundWhat if you a script which takes more than 24 hours to run so in those cases it is not a good idea to run them on putty as in any case of connection failure your putty would stop working making you run the script again. In those cases you can run the process on background manually as shown below
Run the firefox using below parameter
# firefox &
As you can see the firefox opened up on the background without occupying your terminal in the background.
Running a process in foregroundIn this case the terminal used for running the process will be locked and as soon as you close the terminal your running process would be terminated. This can be seen mostly when you are running a very time taking script on a terminal.
Try running firefox from your terminal without using any extra parameter
Now as you see your terminal is locked and unless you close the firefox browser you won't be use that terminal. It means your process is running on foreground.
You can bring the process back to forground using the below cmd
# fg firefox
Follow the below links for more tutorialsRAID levels 0, 1, 2, 3, 4, 5, 6, 0+1, 1+0 features explained in detail
Tutorial for Monitoring Tools SAR and KSAR with examples in Linux
How to secure Apache web server in Linux using password (.htaccess)
How to register Red Hat Linux with RHN (Red Hat Network )
15 tips to enhance security of your Linux machine
How does a DNS query works when you type a URL on your browser?
How to create password less ssh connection for multiple non-root users
How to create user without useradd command in Linux
How to give normal user root privileges using sudo in Linux/Unix
How to do Ethernet/NIC bonding/teaming in Red Hat Linux
How to install/uninstall/upgrade rpm package with/without dependencies
Why is Linux more secure than windows and any other OS
What is the difference between "su" and "su -" in Linux?
How to secure boot loader (grub menu) with password in RHEL 6
10 examples to help you understand top command usage in Unix/Linux