# libtmux.Server.list_sessions

- **Module:** libtmux
- **Package:** libtmux
- **Language:** Python
- **Kind:** method
- **Source:** https://github.com/tmux-python/libtmux/blob/38e368c11117fb4aeb2f082d552cd4f210eae06a/src/libtmux/server.py#L2852
- **Page:** https://libtmux.org/en/py/stable/reference/libtmux-server-list_sessions/

```
libtmux.Server.list_sessions(self) -> list[Session]
```

Return list of :class:`Session` from the ``tmux(1)`` session.

## Deprecated

0.17 — Slated to be removed in favor of :attr:`.sessions`.

## Returns

list of :class:`Session`
