Th3 Core

Why We Are Here => Web Development => Topic started by: littleman on February 15, 2021, 06:26:03 AM

Title: If you do a lot of SSH/terminal work...
Post by: littleman on February 15, 2021, 06:26:03 AM
and you don't use tmux already you really should learn how to use it.


Tmux has two really good features that make life in a term window much easier:

1 It allows you to split up a screen into as many physical spaces as you want.  See picture.

2 It allows you to close off and relaunch a session without losing your workflow or to lose your place in the process.  Any application/tasks launched will continue run in the background and you could check in on them from anyplace you like.  That means you could start a task at the office, close down the term, go home and ssh and relaunch tmux to pick up the processes like you never logged out.


https://www.hamvocke.com/blog/a-quick-and-easy-guide-to-tmux/
Title: Re: If you do a lot of SSH/terminal work...
Post by: ergophobe on February 15, 2021, 05:33:33 PM
Thanks. I do spend a fair bit of time using the command line via SSH. Unfortunately, it's almost always from a Windows OS connecting via SSH to a Linux OS.

I keep thinking of ditching Windows. There are fewer and fewer programs that are Windows-only (or very expensive to get a new license) where I really don't want to switch - InDesign, PowerGREP. I still prefer Photoshop to GIMP.

Are you using WSL (main reason I would change to Windows 10) or native Linux?
Title: Re: If you do a lot of SSH/terminal work...
Post by: littleman on February 15, 2021, 08:41:20 PM
I've never used WSL.  The only recent time I've used windows was a work situation where I was using a provided laptop, and most of the time I just spent connecting to a linux server to get most of my work done.

Sorry, I wasn't clear, tmux is a server side application and should be agnostic to which OS you are connecting from.  It should work with Putty or any other ssh client.
Title: Re: If you do a lot of SSH/terminal work...
Post by: ergophobe on February 15, 2021, 09:06:06 PM
Got it. So it doesn't replace my SSH client, it gives me a better experience regardless of how I connect.