gll89的个人博客分享 http://blog.sciencenet.cn/u/gll89

博文

Tmux--connect to remote server

已有 1227 次阅读 2019-7-24 10:29 |个人分类:Linux|系统分类:科研笔记

tmux basically offers two big features: Window management in your terminal and session management.


1. tmux’s authors describe it as a terminal multiplexer. Behind this fancy term hides a simple concept: Within one terminal window you can open multiple windows and split-views (called “panes” in tmux lingo). Each pane will contain its own, independently running terminal instance. This allows you to have multiple terminal commands and applications running visually next to each other without the need to open multiple terminal emulator windows.


2. On top of that tmux keeps these windows and panes in a session. You can exit a session at any point. This is called “detaching”. tmux will keep this session alive until you kill the tmux server (e.g. when you reboot)2. This is incredibly useful because at any later point in time you can pick that session up exactly from where you left it by simply “attaching” to that session.

For instance, if you’ve ever worked with remote servers or a Raspberry Pi over ssh you can guess where this will be useful: When you lose your ssh connection the tmux session will simply be detached but will keep running on the server in the background including all the processes that run within your session. To continue your session simply ssh to the server again and attach to the running session.



Hands-on guids:

1) Installation

Fortunately installing tmux is pretty straightforward on most distributions a simple sudo apt-get install tmux (Ubuntu and derivatives) or brew install tmux (Mac) should be sufficient.

2)Starting Your First Session

For your first session simply start tmux with a new session:

tmux

This will create a new tmux session 


From: https://www.hamvocke.com/blog/a-quick-and-easy-guide-to-tmux/




https://blog.sciencenet.cn/blog-1969089-1190889.html

上一篇:Pycharm professional安装及激活
下一篇:连接远程Ubuntu服务器

0

该博文允许注册用户评论 请点击登录 评论 (1 个评论)

数据加载中...

Archiver|手机版|科学网 ( 京ICP备07017567号-12 )

GMT+8, 2022-5-27 07:05

Powered by ScienceNet.cn

Copyright © 2007- 中国科学报社

返回顶部