Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

Is there any scripts or tools that can automatically remember and write down the path I am? I asked because, when I was remote accessing my campus cluster via ssh last night, they will log me out every eight hours if I did nothing. I hope when I log in back again this morning, I would be in the folder where I was last night. Thanks

share|improve this question

migrated from Mar 14 '13 at 9:16

This question came from our site for professional and enthusiast programmers.

up vote 5 down vote accepted

You can use screen tool (to create a session do: screen -S myscreen) and have the session alive even if you are forced to disconnect. So when you login next time, you can do screen -r or screen -x to connect back to your session.

Unless you reboot the system or exit manually, the screen session will be active.

share|improve this answer

If the server has GNU Screen, use it. Also, there are sometimes environment variables that can be set or unset to prevent automatic logouts, depending on how your server is setup. I am in a tcsh and have this in my ~/.cshrc:

unset autologout 
share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.