TMUX Flashcards

(28 cards)

1
Q

What is the default “Command Prefix”?

A

Ctrl-b, Currently mapped to: Ctrl-a

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

How do you create a new named session?

A

tmux new -s development

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

To detach from your current session you use:

([PREFIX] + x) - Is that correct?

A

No you use: ([PREFIX + d])

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

How do you list your running sessions?

A

tmux ls

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

How do you re-attach to a running session when only one session exists?

A

tmux attach

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

Is it possible to create a new named session in the background?

A

Yes. append (-d) to the new command:

tmux new -s logging -d

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

The command: tmux attach -s another_session

attaches to a specified session, is this correct?

A

No. use the -t (target session) flag

tmux attach -t another-session

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

One of your apps running in a session is hung up, is it possible to kill a specific session?

A

Yes. Detach from it and run:

tmux kill-session -t my-hung-session

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

Is a window in tmux the same as tabs in modern terminals?

A

Yes.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

When creating a new session, does it automatically create a new window as well? If so, is there a way to rename it when envoking the session creation process?

A

Yes.

tmux new -s first-session -n first-window

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

When creating a new window inside a session, you type: ([PREFIX] + n), is this correct?

A

No. You type: ([PREFIX] + c)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

How do you rename the active window?

A

([PREFIX] + ,) - new name

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

How do you move to the next window?

A

([PREFIX] + n)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q

How do you move to the previous window?

A

([PREFIX] + p)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
15
Q

Is it possible to list all the windows? If so, is the command, ([PREFIX] + l)

A

Yes. No the command is:

[PREFIX] + w

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
16
Q

Can you switch to the specific window using:

[PREFIX] + [NUMBER]

17
Q

Is there a command that allows you to search for string inside a window?

A

Yes. ([PREFIX] + f) - search string

18
Q

What Prefix command can you type to “exit” the current window?

A

([PREFIX] + &) - press ‘y’

19
Q

To split the current window pane vertically you press:

([PREFIX] + “), Is that correct?

A

No. you do:

([PREFIX] + %) ; using the other command splits horizonally

20
Q

To split the current window pane horizontally you press:

([PREFIX] + “), Is that correct?

21
Q

To cycle through the panes you type:

([PREFIX] + p), Is that correct?

A

No. You do:

[PREFIX] + o) or ([PREFIX] + [ARROW KEYS]

22
Q

How do you cycle through pane layouts?

A

([PREFIX] + [SPACEBAR])

23
Q

What is the prefix to close a pane (besides typing “exit”)?

A

([PREFIX] + x) - then press ‘y’

24
Q

How do you enter Command Mode in Tmux?

A

( [PREFIX] + : )

25
In Command Mode, how do you create a new window?
new-window -n name-of-window
26
Can I create a new window and have it automatically close once the process is terminated?
Yes. | new-window -n my-short-lived-window "top"
27
How do I get help?
([PREFIX] + ?)
28
How can I see the pane numbers?
([PREFIX] + q)