I am trying to create a new screen
so that the screen is detached at first, and its current folder is cd /home
.
When I execute screen -dm "cd /home"
(the parameter -dm
means "Start screen in detached mode. This creates a new session but doesn't attach to it".) I get the error message:
Cannot identify account 'cd '.`
However, when I execute screen -dm "$(cd /home)"
, there is no error message, but the current folder in the created screen isn't /home
.
Why?