1. Install screen

sudo pacman -Sy screen

  1. create a session

screen -S session-name

  1. list sessions

screen -ls

  1. detach from session

screen -d session-name

  1. attah session

screen -r session-name