107
submitted 15 hours ago by [email protected] to c/[email protected]
you are viewing a single comment's thread
view the rest of the comments
[-] [email protected] 20 points 13 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.

[-] [email protected] 3 points 4 hours ago

Don’t use screen, but I do use tmux pretty heavily.

[-] [email protected] 5 points 6 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.

[-] [email protected] 1 points 5 hours ago

Try zellij. Not as popular as tmux, but very intuitive to use.

[-] [email protected] 1 points 5 hours ago

Maybe someone reading wants to now about prefix+s. This doubles your excitement.

[-] [email protected] 1 points 5 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?

[-] [email protected] 1 points 1 hour ago

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

[-] [email protected] 4 points 8 hours ago

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

[-] [email protected] 2 points 9 hours ago

I Always forget to run screen first, so I just rely heavily on dtach

[-] [email protected] 1 points 5 hours ago

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

man terminal_of_choice, look for (start) command.

[-] [email protected] 3 points 11 hours ago

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

this post was submitted on 21 Sep 2024
107 points (97.3% liked)

Asklemmy

43407 readers
1409 users here now

A loosely moderated place to ask open-ended questions

Search asklemmy 🔍

If your post meets the following criteria, it's welcome here!

  1. Open-ended question
  2. Not offensive: at this point, we do not have the bandwidth to moderate overtly political discussions. Assume best intent and be excellent to each other.
  3. Not regarding using or support for Lemmy: context, see the list of support communities and tools for finding communities below
  4. Not ad nauseam inducing: please make sure it is a question that would be new to most members
  5. An actual topic of discussion

Looking for support?

Looking for a community?

~Icon~ ~by~ ~@Double_[email protected]~

founded 5 years ago
MODERATORS