TMUX Flashcards
(28 cards)
What is the default “Command Prefix”?
Ctrl-b, Currently mapped to: Ctrl-a
How do you create a new named session?
tmux new -s development
To detach from your current session you use:
([PREFIX] + x) - Is that correct?
No you use: ([PREFIX + d])
How do you list your running sessions?
tmux ls
How do you re-attach to a running session when only one session exists?
tmux attach
Is it possible to create a new named session in the background?
Yes. append (-d) to the new command:
tmux new -s logging -d
The command: tmux attach -s another_session
attaches to a specified session, is this correct?
No. use the -t (target session) flag
tmux attach -t another-session
One of your apps running in a session is hung up, is it possible to kill a specific session?
Yes. Detach from it and run:
tmux kill-session -t my-hung-session
Is a window in tmux the same as tabs in modern terminals?
Yes.
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?
Yes.
tmux new -s first-session -n first-window
When creating a new window inside a session, you type: ([PREFIX] + n), is this correct?
No. You type: ([PREFIX] + c)
How do you rename the active window?
([PREFIX] + ,) - new name
How do you move to the next window?
([PREFIX] + n)
How do you move to the previous window?
([PREFIX] + p)
Is it possible to list all the windows? If so, is the command, ([PREFIX] + l)
Yes. No the command is:
[PREFIX] + w
Can you switch to the specific window using:
[PREFIX] + [NUMBER]
Yes.
Is there a command that allows you to search for string inside a window?
Yes. ([PREFIX] + f) - search string
What Prefix command can you type to “exit” the current window?
([PREFIX] + &) - press ‘y’
To split the current window pane vertically you press:
([PREFIX] + “), Is that correct?
No. you do:
([PREFIX] + %) ; using the other command splits horizonally
To split the current window pane horizontally you press:
([PREFIX] + “), Is that correct?
Yes
To cycle through the panes you type:
([PREFIX] + p), Is that correct?
No. You do:
[PREFIX] + o) or ([PREFIX] + [ARROW KEYS]
How do you cycle through pane layouts?
([PREFIX] + [SPACEBAR])
What is the prefix to close a pane (besides typing “exit”)?
([PREFIX] + x) - then press ‘y’
How do you enter Command Mode in Tmux?
( [PREFIX] + : )