Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

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

1 Answer 1

up vote 0 down vote accepted

Found it. Ctrl+C is the shortcut.

share|improve this answer

Your Answer

 
discard

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.