What did you try? What happened when you tried?
In answer to your first question, I think you need to run Screen with the -d -m
parameters. For example:
The above would start a Screen session but not attach to it. Then you would do this:
And you would find yourself in that Screen session you just made. Using -d -m
is good for startup scripts. You can have Screen load Irssi (an IRC client) in the background and then you attach to to when ready later on. For example:
In answer to your second question, to run a command straight away in Screen, just type the command right after the screen
command. For example:
screen nano /etc/hosts
The above would start a screen session running the Nano editor with the /etc/hosts/
file open and ready for editing.
Hopefully that should get you going in the right direction. Peace. :)