screen command in Linux

In linux screen command provides you an option to run any command with shell session, it can run locally or remotely. What happened when run any command on terminal locally or remotely and you close the session so in that case whatever you were running on terminal it close but when you run command with screen it run with a screen session on Linux machine it does not terminate even after closing terminal/shell session that is the main benefit of running command with screen.

# Type command screen to run command

screen

# It detach a screen session without stopping it.

Ctrl+a + d

# List running screen session

screen -ls 

# Attach running screen session

screen -r 1338  

Share on Google Plus

About Penguin Technology

I am a passionate cloud and DevOps professional specializing in Linux and open-source solutions. Through this blog, I share my knowledge and experience with the community, offering tips and insights on cloud technologies and DevOps practices.
    Blogger Comment

1 comments:

  1. Excellent Blog.
    Learn Industrial Linux Training in Noida from Galaxy Cloud
    https://galaxycloud.in/linux-training.php

    ReplyDelete