In Linux, use ctrl+z to move the task to the background, pause, and then resume.

I remembered a problem that accidentally appeared online, but I couldn't find why. I only found out after reading the ctrl+z command.

The role of ctrl+z moves the task to the background, pauses, and then resumes.

To resume a stopped task, use the fg command

[root@localhost ~]# jobs

[1]+ Paused top

[root@localhost ~]# fg 1

If you want to kill, find the pid first

[root@localhost ~]# jobs -l

[1]+ 2222 Paused top

[root@localhost ~]# kill -9 2222

 

 

Guess you like

Origin blog.csdn.net/lv842586821/article/details/108867701