Start new:

screen

Run some long-time operation:

cd /usr/lib/postgresql/9.3/bin
sudo su -c "./reindexdb -d Local_portal" postgres

Logout from screen (detach):

Ctrl+A+d

List active screens:

$ screen -ls
There is a screen on:
    23815.pts-1.DelmarERPTestInt2    (07/24/2018 07:35:34 AM)    (Detached)
1 Socket in /var/run/screen/S-delmar.

Go back to your opened screen:

screen -r 23815

 

1532433000