How Do I Keep a Process Running in Linux?
Contents Press Ctrl – a Then Ctrl – D. This Will “Detach” Your Screen Session but Leave Your Processes Running. You Can Now Log out of the Remote Box. If You...
Contents
Press Ctrl – A then Ctrl – D . This will “detach” your screen session but leave your processes running. You can now log out of the remote box. If you want to come back later, log on again and type screen -r This will “resume” your screen session, and you can see the output of your process.
How do I keep a session alive in Linux?
To set the SSH keep alive option on a Linux client:
- Log in as root.
- Edit the file at /etc/ssh/ssh_config.
- Add this line to the file: ServerAliveInterval 60.
- Save the file.
Must Read
How do I see running processes in Linux?
Check running process in Linux
- Open the terminal window on Linux.
- For remote Linux server use the ssh command for log in purpose.
- Type the ps aux command to see all running process in Linux.
- Alternatively, you can issue the top command or htop command to view running process in Linux.