Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

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

I'm new to putty. Connected to a linux server to view/read some files. So, I opened a text log file that is constantly being updated, so I'm getting new lines every second.

Is there a shortcut/command to exit/close the file when viewing in putty?

Thanks in advance.

Edit: It was not "vim", but "tail -f" that I was talking about. Sorry for the confusion.

share|improve this question

migrated from stackoverflow.com Jul 7 '12 at 1:35

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

    
Erm... shouldn't you mention what program you are using? vi/vim doesn't support continuous monitoring. So, it is like tail -f or less in (F)ollow mode? – sehe Jul 6 '12 at 11:43
    
Yes, like I said: I'm new. Hench, I didn't know what I was talking about. It was "tail -f" that was running, not vim. Sorry about the confusion. – Gunnar Jul 6 '12 at 14:18
    
I've edited your question for you. Also, voted to move to Super User. Welcome to Stack Overflow – sehe Jul 6 '12 at 15:11
up vote 0 down vote accepted

Found it. Ctrl+C is the shortcut.

share|improve this answer

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .