Posts tagged as:

Unix Less Command

Unix Less Command: 10 Tips for Effective Navigation

by Ramesh Natarajan on February 1, 2010

I personally prefer to use less command to view files (instead of opening the file to view in an editor). Less is similar to more command, but less allows both forward and backward movements. Moreover, less don’t require to load the whole file before viewing. Try opening a large log file in Vim editor and less — you’ll see the speed difference.

The navigation keys in less command are similar to Vim editor. In this article, let us look at few less command navigation and other operations which will make you a better command line warrior.
(more…)

{ 10 comments }

Less is More - The Ultimate Power of Linux Less Command
Photo courtesy of gfpeck

Earlier we discussed 15 practical examples of find command and grep command. Now, it is time to turn our attention to something less.
 
In this article, let us review how Linux less command can be used to open and view the following 10 different file types:

  1. PDF File – *.pdf
  2. Word Document- *.doc
  3. Image Files – *.gif, *.jpg, *.jpeg, *.png
  4. TAR Files – *.tar
  5. TAR Files with gzip – *.tar.gz
  6. Zip Files – *.zip
  7. Gzip and Gzip2 Files – *.gz and *.bz2
  8. ISO Files
  9. Debian Files – *.deb
  10. RPM Files – *.rpm

(more…)

{ 8 comments }