- Getting Started with tmux
- Victor Quinn J.D.
- 374字
- 2021-08-05 17:56:35
Sessions
By running tmux with no arguments, you create a brand new session. In tmux, the base unit is called a session. A session can have one or more windows. A window can be broken into one or more panes. We'll revisit this topic in its own whole chapter (for more information, refer to Chapter 3, Sessions, Windows, and Panes); however, as a sneak preview, what we have here on the current screen is a single pane taking up the whole window in a single session. Imagine that it could be split into two or more different terminals, all running different programs, and each visible split of the terminal is a pane. More on this will be covered in the later chapters.
Tip
What is a session in tmux?
It may be useful to think of a tmux session as a login on your computer.
You can log on to your computer, which initiates a new session. After you log on by entering your username and password, you arrive at an empty desktop. This is similar to a fresh tmux session. You can run one or more programs in this session, where each program has its own window or windows and each window has its own state.
In most operating systems, there is a way for you to log out, log back in, and arrive back at the same session, with the windows just as you left them. Often, some of the programs that you had opened will continue to run in the background when you log out, even though their windows are no longer visible.
A session in tmux works in much the same way. So, it may be useful to think of tmux as a mini operating system that manages running programs, windows, and more, all within a session.
You can have multiple sessions running at the same time. This is convenient if you want to have a session for each task you might be working on. You might have one for an application you are developing by yourself and another that you could use for pair programming. Alternatively, you might have one to develop an application and one to develop another. This way everything can be neat and clean and separate.
- CorelDRAW X6 中文版圖形設(shè)計(jì)實(shí)戰(zhàn)從入門到精通
- 物聯(lián)網(wǎng)網(wǎng)絡(luò)安全及應(yīng)用
- Hands-On Industrial Internet of Things
- Hands-On Chatbots and Conversational UI Development
- 無人機(jī)通信
- 企業(yè)私有云建設(shè)指南
- 計(jì)算機(jī)網(wǎng)絡(luò)與通信(第2版)
- Getting Started with Grunt:The JavaScript Task Runner
- 數(shù)字調(diào)制解調(diào)技術(shù)的MATLAB與FPGA實(shí)現(xiàn):Altera/Verilog版(第2版)
- WordPress Web Application Development
- Kong網(wǎng)關(guān):入門、實(shí)戰(zhàn)與進(jìn)階
- 網(wǎng)絡(luò)安全應(yīng)急響應(yīng)技術(shù)實(shí)戰(zhàn)指南
- 從實(shí)踐中學(xué)習(xí)手機(jī)抓包與數(shù)據(jù)分析
- 高級(jí)網(wǎng)絡(luò)技術(shù)
- Learning Node.js Development