You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardexpand all lines: blog/2024-06-19-tmux-tips.md
+12-12
Original file line number
Diff line number
Diff line change
@@ -9,24 +9,24 @@ authors:
9
9
tags: [tmux, linux]
10
10
---
11
11
12
-
# Tmux - ultimate linux console multiplexer
12
+
# tmux - ultimate linux console multiplexer
13
13
14
14
In this post I would like to show you the *tmux* cli tool. [*tmux*](https://github.com/tmux/tmux) is a terminal multiplexer allowing you to run your cli task in the background and use multiple terminals at once (hence the name multiplexer).
15
15
16
-
I will show you the value of Tmux by showing a couple of usecases. But before we start you need to know how to invoke Tmux commands.
16
+
I will show you the value of tmux by showing a couple of usecases. But before we start you need to know how to invoke tmux commands.
17
17
18
18
### how to open tmux
19
-
First you need to open Tmux which is as easy (assuming you installed it with e.g.) as typing
19
+
First you need to open tmux which is as easy (assuming you installed it with e.g.) as typing
20
20
21
21
```shell
22
22
tmux
23
23
```
24
24
25
-
### how to invoke Tmux commands
25
+
### how to invoke tmux commands
26
26
27
-
Tmux command is preceded by keyboard shortcut *ctrl+b* (which BTW can by changed) and then action itself.
27
+
tmux command is preceded by keyboard shortcut *ctrl+b* (which BTW can by changed) and then action itself.
28
28
29
-
E.g. to detach from Tmux you need to invoke
29
+
E.g. to detach from tmux you need to invoke
30
30
31
31
```shell
32
32
ctrl+b d
@@ -36,10 +36,10 @@ so you press *ctrl*, then (still holding ctrl) *b*, then release them both and f
36
36
37
37
## Run task in the background
38
38
39
-
In this case we will open Tmux, run some task, then detach from Tmux and attach again, kill command and finally exit for good.
39
+
In this scenerio we will open tmux, run some task, then detach from it and attach again, kill command and finally exit for good.
40
40
41
41
42
-
1) open Tmux in your console app
42
+
1) open tmux in your console app
43
43
44
44
```bash
45
45
tmux
@@ -56,7 +56,7 @@ ping pajacyk.pl -i 10
56
56
57
57
```
58
58
59
-
3) Leave Tmux while ping is still going on
59
+
3) Leave tmux while ping is still going on
60
60
61
61
Pressing
62
62
```bash
@@ -78,7 +78,7 @@ or shorter
78
78
tmux a
79
79
```
80
80
81
-
Now you are back in Tmux, and you should see ping results going on.
81
+
Now you are back in tmux, and you should see ping results going on.
82
82
83
83
Let's kill ping by *ctrl+c*
84
84
@@ -119,9 +119,9 @@ ctrl+b z
119
119
Use the same command to unzoom.
120
120
121
121
122
-
### There is one mode thing
122
+
### There is one more thing...
123
123
124
-
Another cool gadged is to display clock in current window
124
+
Another cool gadged is to display clock in the current window
0 commit comments