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 have a mac, and for improved readibility, sometimes I clear the terminal. I'd like to know if there's a shorcut to make the last line become the first of the terminal without clearing anything in the terminal.

Much appreciated.

share|improve this question
add comment

migrated from stackoverflow.com Mar 30 '12 at 1:40

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

3 Answers

up vote 0 down vote accepted

You are still able to scroll up after clear.

share|improve this answer
add comment

You can also simply press Ctrl + L

share|improve this answer
add comment

Why dont you try this?

clear;tail -1 file
share|improve this answer
add comment

Your Answer

 
discard

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