Click Technology

Linux, Windows, Mac it's all good

How do I scroll through a file from the bottom to top?

August20

The easiest way is to use the less command in Linux. Say you want to look at the syslog and roll throught it form the bottom to the top, here’s the command using less.

sudo less +G /var/log/syslog

Also worth knowing is the use of the tail command with the -f switch. With it, the file scrolls live so as more stuff is added to the syslog (or any file), the file scrolls up – very handy.

sudo tail -f /var/log/syslog
posted under Linux Tips

Email will not be published

Website example

Your Comment:

This is my website for short blog posts and interesting materials that are noteworthy or have some handy-tip value.