• notfromhere@lemmy.ml
    link
    fedilink
    arrow-up
    28
    arrow-down
    1
    ·
    1 年前

    Since nobody has said yet, I use screen pretty heavily. Want to run a long running task, starting it from your phone? Run screen to create a detachable session then the long running command. You can then safely close out of your terminal or detach with ctrl a, d and continue in your terminal doing something else. screen -r to get back to it.

    • tetris11@lemmy.ml
      link
      fedilink
      arrow-up
      4
      ·
      1 年前

      Also, screen can connect to an UART device or serial or anything that offers up a TTY

    • krash@lemmy.ml
      link
      fedilink
      arrow-up
      1
      ·
      1 年前

      How does screen / tmux work when detached from a session, how does it keep the session alive (both when running locally, and while ssh:ing to a server)? Is there a daemon involved?

      • darvit@lemmy.darvit.nl
        link
        fedilink
        arrow-up
        1
        ·
        1 年前

        You can find out by running screen and executing pstree, that way you can see how the screen process is run.