---
tags:
  - "#tmux"
parents: "[[Linux Wflow]]"
date/time: 2024-12-29T15:51:00
---

# Sessions
## New Sessions

```
tmux 
tmux new
tmux new-session
```

named sessions - to encapsulates different workflows

```
tmux new -s networking
tmux new -s development
tmux new -s ai specific stuff
```

## Exit Sessions

```
exit
```

## List Sessions
```
tmux list-sessions
tmux ls
```

## Attach/Detach from sessions

attach ``` tmux attach```
```tmux attach -t <sessionname>```
detach ``` prefix + d```



## Killing Sessions

- within the session:```exit```
- outside the session (e.g detached) 
```
tmux kill-session -t "sessionname" 
```

# Windows

new window within a session ``` prefix + c```
new session with a named window: ``` tmux new -s <sname> -n <windoname>```
rename window ```prefix + ,```

moving between windows
```
prefix + n  or prefix +p
prefix + i where i index of window
```

to close a session have to close *all*  windows in session using:
```
exit 
prefix + &
```

# Panes

## Vertical
```
prefix + %
prefix +x
```

## Horizontal
```
prefix + "
```

for scrolling
```
prefix +space
```