Ctrl+Z to run cmd on background in Linux system
Control+Z is really a nice function in linux system. It helps to suspend and dose good management of the running cmds in a terminal.
Here is a good explanation of the usage of Control+Z
A simple summary:
Control+Z to suspend the cmds in the terminal. You must use "bg" to re-run the suspend/stoped cmds.
F+G (fg) to bring the output of the cmds back.
B+G (bg) to run the cmds in the background
jobs: to checks all the running jobs in a terminal, if you have several jobs running there, then they will be listed with a job number
kill (-9) %1: to kill the running jobs of number 1. If it can not be killed, use kill -9 %1.
Here is a good explanation of the usage of Control+Z
A simple summary:
Control+Z to suspend the cmds in the terminal. You must use "bg" to re-run the suspend/stoped cmds.
F+G (fg) to bring the output of the cmds back.
B+G (bg) to run the cmds in the background
jobs: to checks all the running jobs in a terminal, if you have several jobs running there, then they will be listed with a job number
kill (-9) %1: to kill the running jobs of number 1. If it can not be killed, use kill -9 %1.
Comments
Post a Comment