当前位置:网站首页>tmux常用命令
tmux常用命令
2022-06-12 07:58:00 【Amoni_】
1. ubuntu安装tmux
apt-get install tmux
2. 创建新的session窗口
tmux new -s new_session
这里的s意为session-name
在new_session中创建新的窗口
第一步:按Ctrl+B 组合键,然后松开。
第二步:再单独按一下c键
3. 在窗口间切换
假如我们要切换到 0:bash 这个窗口,步骤如下:
第一步:按 Ctrl-B 组合键,然后松开。
第二步:按数字 0 键。
4. detach窗口
第一步:输入组合键 Ctrl+B,然后松开。
第二步:输入字母d。
d即为detach之意
5. 恢复窗口
查看所有窗口:tmux ls
ls意为list-session
恢复指定窗口:tmux a -t new_session
这里-t的意思是target-session
6. kill掉窗口
kill一个tmux进程:tmux kill-session -t dev(kill名为dev的session)
7. 切换窗口
在tmux session内切换到另一个tmux session:tmux switch -t xxx
8. 在一个tmux session中创建多个pane
1. 水平或垂直分割当前session
1.1 拆分为上下两个pane:先按下Ctrl+b的组合键,再按下"
1.2 拆分为左右两个pane:先按下Ctrl+b的组合键,再按下%
2. 在session中切换pane
2.1 切换到左侧的pane:先按下Ctrl+b的组合键,再按下←
2.2 切换到右侧的pane:先按下Ctrl+b的组合键,再按下→
2.3 切换到下方的pane:先按下Ctrl+b的组合键,再按下↓
2.4 切换到上方的pane:先按下Ctrl+b的组合键,再按下↑
3. 调整当前pane的大小:按住Ctrl+b组合键,再按下键盘上的方向键
4. 关闭当前pane:先按下Ctrl+b的组合键,再按下x
边栏推荐
- What is a good recommendation system?
- Chapter 4 - key management and distribution
- Chapter 8 - firewall, Chapter 9 - Intrusion Detection
- Chapter 6 - identity authentication, Chapter 7 - access control
- 最新hbuilderX编辑uni-app项目运行于夜神模拟器
- Solve the problem of uploading sftporg apache. commons. net. MalformedServerReplyException: Could not parse respon
- Work summary of the week from November 22 to 28, 2021
- Leetcode notes: Weekly contest 276
- 20220526 loss function
- Improvement of hash function based on life game (continued 2)
猜你喜欢

2021.11.3-7 scientific research log

谋新局、促发展,桂林绿色数字经济的头雁效应

Voice assistant - potential skills and uncalled call technique mining

Classic paper review: palette based photo retrieval

Getting started with Jetson nano Series IV: common skills of NVIDIA Jetson nano
![FPGA based communication system receiver [packet detection] development document](/img/50/0d15abc41c6e373b00fa05e299566a.jpg)
FPGA based communication system receiver [packet detection] development document

What is a good recommendation system?

Symfony 2: multiple and dynamic database connections

Mathematical knowledge - matrix - matrix / vector derivation

Literature reading: deep neural networks for YouTube recommendations
随机推荐
Compiling principle on computer -- functional drawing language (I)
20220526 loss function
Voice assistant -- Architecture and design of Instruction Assistant
AJ project: online bank project summary
2021.10.24-25 scientific research log
Voice assistant -- Qu -- semantic role annotation and its application
20220525 RCNN--->Faster RCNN
Latex usage problems and skills summary (under update)
謀新局、促發展,桂林綠色數字經濟的頭雁效應
R language uses neuralnet package to build neural network regression model (feedforward neural network regression model) and calculate MSE value (mean square error) of the model on the test set
Fundamentals of Mathematics - Taylor Theorem
LeetCode笔记:Biweekly Contest 79
LeetCode笔记:Weekly Contest 296
Meter Reading Instrument(MRI) Remote Terminal Unit electric gas water
Topic 1 Single_ Cell_ analysis(2)
The latest hbuilderx editing uni app project runs in the night God simulator
Leetcode notes: biweekly contest 71
vscode 1.68变化与关注点(整理导入语句/实验性新命令中心等)
C # push box
Pytorch profiler with tensorboard.