If you are experienced with Vim you can simply type at your terminal prompt vi ~/.screenrc. To edit it (it will likely not exist yet, especially if you just installed screen, simply use your favorite text editor and open the file ~/.screenrc. screenrc file is a hidden configuration file in your home directory. The only section we will be using is the. I do not recommend you run this script as it is outdated, used as a reference only, and usually run manually step by step. Let’s see how we can now define a great screen profile, based on an excerpt from setup_server.sh, located in the Percona-QA GitHub repository (GPLv2 Licensed), a script created for setting up a server for quality assurance testing. If there is more then one screen session running on your system (and owned by you), you can type screen -d -r NAME where NAME is the name of a screen as listed by screen -ls, for example 1, though just specifying any part from either before or after the dot (like 367 or pts), which still uniquely identifies a particular screen session, is sufficient also. Typing the command (in the parent shell you are in now if you followed the text identically), screen -d -r will bring you back into the screen session, provided that there is only one screen session active (you can start many). Then, you can execute screen -ls to see a list of active screen sessions. Press the key sequence CTRL+a > CTRL+d to return to the command prompt of the parent shell session. You may have to press enter or space to get through the screen splash screen. Simply execute screen at the command line and you’re in. ![]() Now that screen is installed, you can start using it immediately. To install screen on your RedHat/Yum based Linux distribution (Like RHEL, Centos and Fedora), execute the following command in your terminal:
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |