/t/ - Technology

Welcome to the WIRED

Posting mode: Reply
Visit J-List - Your Favorite Online Shop and Friend in Japan
Get the Newest Figures from J-List - Your Favorite Online Shop and Friend in Japan

[]
05/21/24 Happy birthday hikari3! (News post)
12/21/23 Recent news post: Check here. Also, new board added: /i/ - Oekaki.
11/25/23 Accepting banner submissions; check this thread for more details.
11/17/23 New blotter! Use this to keep an eye for small updates.
[Show All]


Merry Christmas!


(109.88 KB 462x462 IMG_8199.gif)
Why use tmux?? Anonymous 11/09/2024 (Sat) 16:14:12 No. 914
Why should I use tmux over the tiling and tabbing features of my window manager or those already built into many terminals?
>>
>>914 You probably won't need it unless all of your graphical programs go missing and you need to use TTY. I use tmux because I don't have the any of the things you talked about
>>
>>914 Simple: you want to have a service running in the background that's not a daemon For example, transcoding video with ffmpeg might take a very long time. If you end up closing your terminal for whatever reason during that and your session isn't in screen or tmux, it's gone and you have to start from scratch
>>
>>915 Im not sure what you mean even if you don’t use a window manager most default terminals support this kind of features even on gnome and you aren’t using a minimal terminal unless it’s used with a minimal tiling window manager >>921 Im pretty sure the nohup and disown command can do that without a terminal multiplexer
>>
>>921 nohup cmd & or cmd & disown (but disown does not redirect the command output by itself)
>>
>>914 My terminal doesn't support multiplexing so I end up using tmux as a workaround. It also allows me to keep my sessions alive and accessible from elsewhere with ssh.
>>
do you really need tmux? your shell probably has good enough job control features, at least on linux: ctrl+z stops a foreground job jobs lists all the active processes in that terminal bg restarts a stopped job (in the background) fg brings a process to the foreground, and restarts it if it was stopped you can use the job number (from the jobs list) preceded by '%' with bg, fg, disown, etc. for example fg %2
>>
you can run tmux as a daemon and things you run won't die together with x which likes to die alot. nohup is bullshit because it saves output right in your ass. with tmux it's just a matter of reconnecting to the session. i use urxvtd though, because i got sick of overbloated gtk/qt interfaces that don't let me fucking press f1 while messing around with my kernel config
>>
in ~7 years of using linux openrc, x and either dwm or my own wm (no name yet) I have experienced maybe 3 xorg crashes. what do you people do to make xorg crash I guess you could ctrl+alt+f2 and use a different tty for the daemons
>>
I do nothing at all, the screen just randomly goes blank. It only happens once in a while though


Quick Reply