# Computing in background on Linux
Put your jobs in the background
# Pure Ampersand
The simple way is to use `&` (aka ampersand) this sign. It can directly put your task in the background. However, the jobs will be interrupted after you turn off the terminal.
# Nohup
Command
```
nohup python (script) > log 2>&1 &
```
# Tmux
```
tmux
tmux ls
tmus a -t (number)
```
If you wanna put it to run and leave terminal, you can directly clos it and do not use `exit` to leave it.
### Turn on mouse scroll mode
Create a config file for tmux
```
vim ~/.tmux.conf
```
And then, fill in two lines:
```
set -g terminal-overrides 'xterm*:smcup@:rmcup@'
set -g mouse on
```
Done~