user-avatar
Today is Thursday
November 21, 2024

September 21, 2009

how to login into screen by default

by viggy — Categories: Uncategorized — Tags: , Leave a comment

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.

Leave a Reply

Your email address will not be published. Required fields are marked *

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>