Kalan's Blog

Software Engineer / Taiwanese / Life in Fukuoka

Current Theme light

The habit of using the terminal has always been to switch tabs through the tab functionality of iTerm2. There is nothing wrong with this approach, but since I learned about the usefulness of tmux, I have moved all my terminal operations to tmux. tmux has several concepts: session, window, and panel. Each window can have multiple panels, and each panel can access different sessions. It is very convenient when working with remote servers.

The keyboard shortcuts in tmux are quite unique. They all start with <C-b> combined with other keys. This article records some of the commonly used shortcuts:

Function
tmux new -s nameCreate a new session
tmux a -t nameWhen the terminal is closed, tmux retains the session and can be restored with attach
tmux lsList the current sessions
cCreate window
&Kill window
.Name window
%Vertical split (within the same page)
"Horizontal split (within the same page)
xKill panel
,Rename panel
zTemporarily hide other panels

Prev

Future Energy Shortage Concerns

Next

Change from prismjs to shiki

If you found this article helpful, please consider buy me a drink ☕️ It'll make my ordinary day shine✨

Buy me a coffee

作者

Kalan 頭像照片,在淡水拍攝,淺藍背景

愷開 | Kalan

Hi, I'm Kai. I'm Taiwanese and moved to Japan in 2019 for work. Currently settled in Fukuoka. In addition to being familiar with frontend development, I also have experience in IoT, app development, backend, and electronics. Recently, I started playing electric guitar! Feel free to contact me via email for consultations or collaborations or music! I hope to connect with more people through this blog.