# pkg install screen # rehash
$ cat .screenrc
hardstatus on hardstatus alwayslastline hardstatus string "%w"
$ screen -S longtask -t longtask Ctrl-a d $ screen -list $ screen -r longtask $ screen -d -r longtask
С сохранением сессии
user1$ cat .screenrc
#shell /bin/bash #shell /bin/csh
user1$ chsh ... или root# usermod -s /usr/bin/screen user1 или root# pw usermod user1 -s /usr/local/bin/screen
# ls -l /tmp/screens/S-user1/ # screen -x user1/
user1$ cat .screenrc
... multiuser on acladd root
user1$ exit
# ls -l /var/run/screen/S-user1/ # screen -x user1/
linux# screen /dev/tty.usbmodemfa2321 115200 macosx# screen /dev/tty.PL2303* 9600 Ctrl-a k