Installing and using screen in FreeBSD

To create a screen with the name of "install" just type this:
  1. [root@dev ~]# screen -S install
Then you can start and installation procedure, go to sleep and come back in the morning to see what's happening. For this example, we will do a simple top command. So type "top" in the new window and after press [CTR]-A [CTR]-D to detach the window. Now to get a list of active windows, type this:
  1. [root@dev ~]# screen -list
  2. There is a screen on:
  3. 47578.install (Detached)
  4. 1 Socket in /tmp/screens/S-root.
Now to go back into the "install" window, type this:
  1. [root@dev ~]# screen -r install