[ETR #47] Tmux Is Tmagic


Extract. Transform. Read.

A newsletter from Pipeline

Hi past, present or future data professional!

I’ve done some of my best data engineering work while walking my dogs. The good news is you can do the same by leveraging one of the most accessible, intuitive bash tricks I’ve discovered–tmux.

Ever since a teammate introduced me to the tmux framework, I’ve saved several hours of time and compute-consuming “background” tasks ranging from iterative API requests to multi-terabyte backfills. This frees me to concentrate on critical tasks such as architectural design and strategic planning, both of which often require deep thought and, increasingly frequently, face-to-face (or screen) meetings.

What is Tmux?

Tmux, short for terminal multiplexer, is a powerful tool that allows you to run programs in multiple windows and, crucially, detach from those windows while your scripts continue to run in the background. It's like having multiple virtual workspaces within your terminal, enabling you to multitask with unparalleled efficiency.

Imagine being able to launch a long-running data backfill, disconnect from your terminal, and then go focus on other pressing matters - all while the backfill continues uninterrupted as a background task. Within Google Cloud Platform I use tmux within the bash command line or “ssh” terminal associated with my Compute Engine virtual machine (VM) instances.

As long as I keep the VM running, I can minimize or entirely close the SSH window and move onto local applications or other GCP tools.

Why Tmux Is Tmagical

  • Maximize Efficiency: Run background processes and free up your terminal for other work
  • Preserve Progress: Ensure long-running background tasks continue uninterrupted, even if your connection drops or the operation times out
  • Seamless Monitoring: Re-attach to sessions to check progress and verify completion of background operations
  • Streamlined Workflow: Manage multiple background tasks within a single terminal window

For details on the tmux commands, I recommend this cheat sheet.

Tmux has become one of my go-to hacks for data engineering. There is a low bar to entry (it’s really only a few bash commands), and it offers a significant return on investment by dramatically improving your productivity and efficiency when managing and executing background processes.

Which means I can walk my dogs a bit slower (in Florida that really matters!).

To kick off your own background processes, dive into my tmux starter:

https://medium.com/pipeline-a-data-engineering-resource/tmux-is-tmagic-a416cb3788ac

Thanks for ingesting,

-Zach Quinn

Extract. Transform. Read.

Reaching 20k+ readers on Medium and nearly 3k learners by email, I draw on my 4 years of experience as a Senior Data Engineer to demystify data science, cloud and programming concepts while sharing job hunt strategies so you can land and excel in data-driven roles. Subscribe for 500 words of actionable advice every Thursday.

Read more from Extract. Transform. Read.

Extract. Transform. Read. A newsletter from Pipeline Hi past, present or future data professional! While many tech-oriented companies have (in one way or another) reneged on remote working arrangements, my employer made an extreme gesture to demonstrate its commitment to the ongoing office-less lifestyle: It removed an entire floor of our two-floor New Jersey office space. Other companies, like Spotify, have unveiled slogans like “Our employees aren’t children. Spotify will continue working...

Extract. Transform. Read. A newsletter from Pipeline Hi past, present or future data professional! The only thing worse than summer temperatures (if you’re in the western hemisphere, that is) is a summer job search. Conventionally, summer isn’t the best time to apply for work; you could probably tell this if you’re currently working and find yourself accepting an overwhelming amount of OOO cal invites. If you are braving the heat of the job market, I want to share a more targeted and...

Extract. Transform. Read. A newsletter from Pipeline Hi past, present or future data professional! Well, it finally happened; AI has replaced a build I created and I’ve been made redundant. Thankfully, the person that created the AI integration was also me. And I did this on personal time so this isn’t an apocalyptic scenario. I’ve previously written about a handful of tools I created to optimize the “busy work” of blogging. One of the ways is by adding links to past relevant articles and...