• @notfromhere@lemmy.ml
    link
    fedilink
    1910 hours ago

    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.

    • @gitamar@feddit.org
      link
      fedilink
      Deutsch
      33 hours ago

      I recently switched to tmux and boy, it’s way better. I basically use only tmux now anymore. Creating panes to have two processes in one glance, multiple windows, awesome. Plus all the benefits of screen.

    • @krash@lemmy.ml
      link
      fedilink
      12 hours ago

      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?

    • @papertowels
      link
      35 hours ago

      In a similar vein, nohup lets you send tasks to the background and seems to be everywhere.

      • @7dev7random7@suppo.fi
        link
        fedilink
        13 hours ago

        Simply change your terminal command to execute the terminal multiplexer of your choice.

        man terminal_of_choice, look for (start) command.

      • huf [he/him]
        link
        fedilink
        English
        45 hours ago

        no, tmux is a newer screen. some of us havent switched cos we’re too lazy i guess? i think the common wisdom is that it’s better. i havent tried cos i already know enough of screen and it’s fine for me

        • @papertowels
          link
          45 hours ago

          Or you can learn both and spend the rest of your life trying screen commands in tmux and vice versa.