what is tmux attach windows 1

what is tmux attach windows

# In terminal (Tested on Ubuntu 20.04)
tmux ls
# 0: 1 windows (created Thu Oct  7 18:24:25 2021)
tmux attach-session -t 0 .

Here is what the above code is Doing:
1. Create a new tmux session
2. Create a new window in the session
3. Split the window into two panes
4. Run the command “top” in the first pane
5. Run the command “htop” in the second pane
6. Detach from the session
7. List the sessions
8. Attach to the session

Similar Posts