Issue
Here's what's happening to me: I start tmux sessions using tmux -L name1
, tmux -L name2
; then I detatch them using ctrl+B+d. Then I try to get a list of the currently running sessions on my computer. However, when I run tmux ls
, I get an error message:
failed to connect to server: Connection refused
Is this a bug? I'm familiar with screen; I regard screen -ls
as a very useful function since I might start a session and leave it running for weeks before the next time I attach to it. Because of this, the ability to list current running tmux sessions is quite important for me. Why does tmux ls
return a "connection refused" error when I know tmux is running?
Solution
Try tmux -L name1 list-session
.
Answered By - Lars Kotthoff Answer Checked By - Clifford M. (WPSolving Volunteer)