Skip to main content
Back to Commands
Session ManagementPrefix + s (session list)

list-sessions

Short form: ls

List all sessions. Each session is shown with its name, number of windows, size, and whether it is attached.

Synopsis

bash
tmux list-sessions [-F format] [-f filter]

Options

FlagDescription
-F formatSpecify output format
-f filterFilter sessions using a format condition

Examples

List all sessions

bash
tmux ls

Full command form

bash
tmux list-sessions

List only session names

bash
tmux ls -F '#{session_name}'

Default Keybinding

Prefix + s (session list)

Default prefix is Ctrl+b

Pro Tips

  • Prefix + s gives an interactive session picker
  • Check session status before running tmux attach