Un modo migliore per verificare cosa viene eseguito esattamente quando digiti screen sarebbe eseguire command -V screen . Questo ti dirà se sta eseguendo un binario (nel qual caso verrà fornito il percorso completo) o un alias della shell, una funzione, ecc.
Un'altra cosa da controllare è se c'è un chdir comando nel tuo ~/.screenrc o il screenrc a livello di sistema .
Il screen(1) pagina man descrive la schermata chdir comando .
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. …
La configurazione del mio schermo per una sessione di programmazione include il comando
chdir "$HOME/Projects"
Il primo passo è assicurarsi che screen non sia un alias.
Digita alias e cerca screen . Tieni presente che questo elenco potrebbe essere lungo. Potresti voler digitare alias | grep screen separare il grano dalla pula.
Se screen risulta essere un alias per qualcosa come cd ~ && screen puoi rimuoverlo usando unalias screen .