screen não sabe sobre cd porque é um shell embutido, então screen não pode executá-lo. No entanto, screen tem um comando interno de chdir . Se você executar chdir sozinho a partir da linha de comando screen , todas as novas janelas na sessão screen serão iniciadas em seu $ HOME. Se você executar chdir /home/cataldo/Programs da linha de comando screen , todas as novas janelas na sessão screen serão iniciadas em /home/cataldo/Programs .
Se você deseja abrir três janelas em diretórios diferentes quando iniciar uma nova sessão screen , no seu ~/.screenrc defina o diretório com chdir e inicie imediatamente uma nova janela.
# Start these windows when screen starts up
chdir /home/cataldo/Programs
screen 0
chdir /usr/local/bin
screen 1
chdir /tmp
screen 2
chdir
De man 1 screen (preste atenção na última linha)
chdir [directory]
Change the current directory of screen to the specified directory or,
if called without an argument, to your home directory (the value of
the environment variable $HOME). All windows that are created by means
of the "screen" command from within ".screenrc" or by means of "C-a :
screen ..." or "C-a c" use this as their default directory. Without a
chdir command, this would be the directory from which screen was invoked.
Hardcopy and log files are always written to the window's default
directory, not the current directory of the process running in the window.
You can use this command multiple times in your .screenrc to start
various windows in different default directories, but the last chdir value
will affect all the windows you create interactively.