Create ~/.screenrc with the following lines
chdir $HOME/workspace/core-project screen -t core chdir $HOME/workspace/hadoop-project screen -t hdpWhen you run screen, there are two windows named "core" and "hdp", the working directory is "$HOME/workspace/core-project" in "core" window, and "$HOME/workspace/hadoop-project" in "hdp" window.
Using .screenrc means every screen session will have the same windows. If this is not the case, using alias and a customized screenrc file like this:
$ alias xxxscr='screen -D -R -S xxx -c ~/.xxx.screenrc' $ xxxscr
You can quit and kill all windows using this key CTRL+A+|
No comments:
Post a Comment