
Originally Posted by
vigge_sWe
Do you mean that you want to run commands you previously ran, but then closed SSH and when you return, you want to be able to access those commands again by using the arrow keys?
If this is what you want, type 'screen' without ', then enter to accept the license. Then use the commands you usually do. Next time you login to SSH, type 'screen -ls' without ', to see all the detached sessions. Then, write 'screen -r *name of the session listed in screen -ls*' without '. Now you can access previously ran commands with the arrow keys. This will also allow you to see all the commands you ran, as screen keeps one session, so it looks like you never logged of.
Thanks,
I will give it a try, but since I can connect as root without using my ***vm access I think I will just do that. The history is already available to me using the arrow keys.
Ok I tried it
Code:
root@localhost:/# screen -ls
Code:
There is a screen on:
25958.pts-2.localhost (02/14/10 15:04:46) (Detached)
1 Socket in /var/run/screen/S-root.
There is no name that I can see. I tried S-root, i tried 1, i tried Detatched...
adding a password and connecting via one of the vps ip's seems to be the simplest option available to me.
Thanks so much for the assistance all the same vigge_sWe.
Edit:
ok, the name
Code:
screen -r 25958.pts-2.localhost
This did work for me.
going direct to root still makes more sense to me and I had not thought of it before, der!!!!
The history logs are right there as suggested, arrow up on putty to scroll through past logs. Just what I wanted.
Thanks again peeps.