Use CTRL+Z when the command is run, forcing the current process to go to the background and stop it.
1. Let the process resume running (background)
(1)Use the command bg
Example:
zuii@zuii-desktop:~/unp/tcpcliserv$ ./tcpserv01
*Use CTRL+Z here, serv01 is stopped*< Br>
[1]+ Stopped ./tcpserv01
zuii@zuii-desktop:~/unp/tcpcliserv$ bg
[1]+ ./tcpserv01 & *At this time Serv01 runs in the background*
zuii@zuii-desktop:~/unp/tcpcliserv$
(2) If you stop several programs with CTRL+Z?
Example:
zuii@zuii-desktop:~/unp/tcpcliserv$ jobs
[1]- Running ./tcpserv01 &
[2]+ Stopped ./Tcpcli01 127.0.0.1
zuii@zuii-desktop:~/unp/tcpcliserv$ bg %1
bash: bg: task 1 has been transferred to the background* background running*
2. Restore the process to the foreground
Example:
zuii@zuii-desktop:~/Unp/tcpcliserv$ ./tcpserv04
[1]+ Stopped ./tcpserv04
zuii@zuii-desktop:~/unp/tcpcliserv$ fg
./tcpserv04< Br>
Summary:
(1) CTRL+Z stops the process and puts it into the background
(2) jobs displays the currently suspended process
(3) bg %N causes the Nth task to run in the background (with spaces before %)
(4) fg %N makes the Nth task run in the foreground
Default bg, fg without %N Indicates the operation of the last process!
Press Esc when booting up to bring up the GRUB menu. Enter advanced mode. After selecting
caused by Linux clone virtual machine The virtual machine Vmware cloned a Red Hat Enterpris
We all know that system function calls are the interfaces that the Unix/Linux operating system provi
1. u-boot program entry address To understand the programs entry address, naturally think of the co
Linux SSH Session replication function implementation method
Ubuntu14.04 forgot the root password solution
Ubuntu disk cleanup protection
/etc/fstab file error, unable to enter Linux system
Windows and Linux dual system - modify the default boot order
Ubuntu LAN uses client networking
Linux system administrator must-have tool series vmstat
Happy experience of installing Ubantu under Windows
Problems that newbies may encounter when adding users and deleting users in Linux
Win7 system game can not be full screen display solution
XP System Boot Item Optimization Settings
How to set the default WPS open mode for Win10 system?
Win7 Academy: Windows 7 under the sound of noise problem solving
Talk about DNS in the Active Directory
How to disable the family group to disable the desktop generation family group icon
How to upgrade Win 10 official version 10240 to TH2 official version 10586?