Kalan's Blog

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

四零二曜日電子報上線啦!訂閱訂起來

Software Engineer / Taiwanese / Life in Fukuoka
This blog supports RSS feed (all content), you can click RSS icon or setup through third-party service. If there are special styles such as code syntax in the technical article, it is still recommended to browse to the original website for the best experience.

Current Theme light

我會把一些不成文的筆記或是最近的生活雜感放在短筆記,如果有興趣的話可以來看看唷!

Please notice that currenly most of posts are translated by AI automatically and might contain lots of confusion. I'll gradually translate the post ASAP

tmux Shortcut Key Notes

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