Tuesday, January 15, 2008

Terminal Emulation for Linux

For security and remote administration reasons you can "screen" out of your working terminal and close out of your shell and have access to the working shell remotely and local when you need it. To do this follow the steps below.

Su to root:
$su -
type:
# screen
Now type your commands:
# tshark -i xxxxxxxx
Now hold down the following keys at the same time:
# CTRL + a + d
This detaches the screen and allows you to exit the terminal window.


To access the detached terminal do the following:
From local:
$ su -
# screen -R
This gets you back into the terminal you were working on.

From remote:
ssh to the server
$ su -
#screen -R
You will she your command still running.


Thanks to scm for showing me this.

No comments: