There are times when you need to log off your Linux Desktop, and you want a process to run in the background. TMUX manages this very well.
For this example, let's suppose you're running a long running task like running rspecs on your project and
it is 5pm, and you need to go home.
$ tmux
$ bundle exec rspec spec
Simply press [CTRL]+[b], then [d]. This will detach your session from TMUX
Now you can simply log off
When you return back to your desktop, open a terminal and simply run:
$ tmux attach
OR
$ tmux a
This will attach to your detached TMUX session.
- Create a new tab:
[CTRL]+[b], [c] - Switch to tab number:
[CTRL]+[b], <number> - Enable Scrolling up / Page up:
[CTRL]+[b], [
<3