Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

How the Linux foreground program goes to the background and closes the terminal without killing the command

2025-03-18 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Internet Technology >

Share

Shulou(Shulou.com)06/02 Report--

This article introduces how the Linux foreground program goes to the background and closes the terminal without killing the command, the content is very detailed, interested friends can refer to, I hope it can be helpful to you.

Connect to a linux/unix machine via SSH or terminal putty and execute a program, script, or command, but now you need to close SSH or terminal, because the program, script or command is running, and once you shut it down without doing anything, the process will shut down together, wasting half the work.

Here is a way to transfer a running program, script or command to the background when you need to close the terminal. Assuming your program, script or command is being executed, you can do this:

1. Press ctrl+z

2. Enter the command bg

3. Enter disown (you may only see one or two letters when typing, do not think that you have not entered it, just enter directly after typing)

4 、 exit

About the Linux foreground program how to go to the background and close the terminal without killing the command is shared here, I hope the above content can be of some help to you, can learn more knowledge. If you think the article is good, you can share it for more people to see.

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Internet Technology

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report