Ctrl+z/bg/nohup/setsid/& In Linux, if you want the process to run in the background, in general, we can add & after the command, in fact, this is to put the command Into a job queue: # ./rsync.sh &# jobs
For commands that have been executed in the foreground, you can also re-execute them in the background. First, press ctrl+z to pause the running process. Then use the bg command to put the stopped job into the background: bg %1, put it back in the foreground: %1.
But the process executed from the top to the background, the parent process is still the process of the current terminal shell, and once the parent process exits, it will send a hangup signal to all child processes, and the child process will also exit after receiving the hangup. . If we want to continue running the process while exiting the shell, we need to use nohup to ignore the hangup signal, or setsid will set the parent process to the init process (process number is 1):
# nohup ./rsync.sh &# setsid ./rsync.sh & or # (./rsync.sh &) ////Execute # ps -ef
Running live55 under linux shows the figure: not getting ip: ip is 0.0.0.0 live555 does not know th
This period win8.1 Mac OS X 10.9 Mavericks Two operating systems almost simultaneously released, i
Requirement scenario Using the proxy server HAProxy to load balance Mysql is a common solution. To
lftp is an ftp client under Linux for logging in to a remote FTP server. Use its mirror command to b
Linux compression and decompression tutorial
In the process of learning the Linux driver, I encountered a macro called container
Block SSH password attempt tool software
How to manually clear or refresh the SWAP partition of Linux
Pre-installed Linux system models, problem solving for installing XP system
Linux batch delete file and empty file delete command
Local installation of LAMP and WPMU
Analysis of the lower part of the Linux 2.6 interrupt
Rookie Classroom: Several programming languages under Linux that are ignored
Select/poll/epoll comparison analysis
What is the difference between Linux process priority NI and PR?
Windows XP always prompts that the virtual memory minimum is too low. Solution
What are the win7 timing shutdown commands? how to use?
Routers are also entering the era of wireless
Win2003 system acceleration four skills
How to replace the win10 key? Win10 key replacement method
Win7 hard disk can not be formatted How to solve
Win7 computer boot prompt "some of the notes metadata has been damaged how to do
Tips for Modifying Windows 98 Display Fonts
What should I do if the NIC cannot be started after the Linux virtual machine is cloned?