My 2 paisas

how to login into screen by default

Posted on: September 21, 2009

Do you have to use multiple terminals while working on console, then screen is the utility for you.
Now you would like to login into screen by default so that you dont have enter the screen command every time you start a new bash. For this all you have to do is enter a line

screen -x || screen

in your .bashrc or .bash_profile file in your home directory.

.bashrc is executed every time you start a console. So adding the above line in .bashrc file executes the above line every time .bash is started. above line just checks if there is already a screen opened on the system. If it is opened, it connects to that or else it starts a new screen.

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

Links that I liked to save

Blog Stats

  • 44,531 hits
%d bloggers like this: