Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

I like to read books in the terminal with the 'less' command. However when I stop reading, I'd like it to remember my last position so that I can resume with reading without having first to find where I left off. Can this be done?

share|improve this question

closed as off topic by MadHatter, quanta, the-wabbit, Ward, John Gardeniers Oct 19 '12 at 9:44

Questions on Server Fault are expected to relate to professional server, networking, or related infrastructure administration within the scope defined by the community. Consider editing the question or leaving comments for improvement if you believe the question can be reworded to fit within the scope. Read more about reopening questions here.If this question can be reworded to fit the rules in the help center, please edit the question.

add comment

2 Answers

There is not a completely automatic way for that.

What you can do, however, is to press = when you are about to finish reading, see the line number you currently are, and the next time open the book with less +4242 hitchhikers_guide_to_galaxy.txt or so. That would open the book from line 4242.

share|improve this answer
add comment

Use tmux or screen when you are reading ebooks.

share|improve this answer
add comment

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