Home 0P3N Blog [ANSWERED] Less Command Not Working
Ready to Start Your Career?
Create Free Account
authors profile image
January 1, 2016

[ANSWERED] Less Command Not Working

January 1, 2016
authors profile image
January 1, 2016
I'm not sure what I am doing wrong, but I have not been successful in using the less command to show the contents of a log file. I've tried both as a standard user and with elevated permissions. No luck. I am running 14.04.2 in my lab My alternate was to use the MORE command which appears to produce the same results. Hi @mkuhn, Are you receiving an error message? Or can you copy/paste here the command and output you are getting? --Stark Strange today is seems to work, but could you explain what the difference is between LESS vs MORE? The main difference is that ```more``` can't easily handle large files, so when it's passed text too large for the screen it pages it. Essentially, you can only scroll down. ```Less``` allows you to scroll up and down. ```Less``` is also relatively massive (compared to ```more```) and, as a result, you're more likely to find ```more``` on embedded systems instead of ```less```. Think routers, switches, NAS, etc. --Stark there is also "most" (but you might need to install this), which does the same as less, but colourcoded. Makes stuff a bit easier to read. Sorry, I'm really a newbee, what is the apt-get command to install the MOST command? @mkuhn I'd assume it's ```apt-get install most```, but that'll depend on which distro you're using. I tried installing ```most``` on a new Debian install (Jessie), but it wasn't available in the repository. According to a post in Ubuntu forums, however, they're saying the above apt-get command does work. I also searched Ubuntu repositories \[online version\] which does seem to include most. --Stark Sorry, I should have replied earlier. Just for giggles I did try the apt-get install most and it worked like a charm. I have to admit I am truly impressed with this site and the help every one gives! Thanks Guys! here's the site for [most](https://www.jedsoft.org/most/) I'm not sure what I am doing wrong, but I have not been successful in using the less command to show the contents of a log file. I've tried both as a standard user and with elevated permissions. No luck. I am running 14.04.2 in my lab My alternate was to use the MORE command which appears to produce the same results.
Schedule Demo

Build your Cybersecurity or IT Career

Accelerate in your role, earn new certifications, and develop cutting-edge skills using the fastest growing catalog in the industry