Home > Enterprise >  How do I get out of 'screen' without typing 'exit' in Mac?
How do I get out of 'screen' without typing 'exit' in Mac?

Time:12-15

I want to exit 'screen' in a linux machine without terminating it (and without opening another terminal).

I saw this thread, but it was only for 'regular' key board. Which keys should I hit in mac? (connected via ssh to linux vm)

ctrl a, k didn't work

neither did command a, k

CodePudding user response:

If you want to detach from current running screen in Linux

you have to detach it by pressing Ctrl a followed by d

example:

screen -S test

new screen will open

xyz
...

Press Ctrl a and d to detach, and it will be running in background.

To check the running screens type

screen -ls

To attach particular screen type

screen -r <name of screen>

CodePudding user response:

I want to exit 'screen' in a linux machine without terminating it (and without opening another terminal).

You can quit the terminal with:

Command D

Screen session will continue

  • Related