Saturday, April 26, 2014

less

  •    less command examples
less is very efficient while viewing huge log files, as it doesn’t need to load the full file while opening.
$ less huge-log-file.log
One you open a file using less command, following two keys are very helpful.
CTRL+F – forward one window
CTRL+B – backward one window

Related Posts:

  • diff diff command examples Ignore white space while comparing. # diff -w name_list.txt name_list_new.txt  2c2,3 < John Doe --- > John M Doe > Jason Bourne Normal 0 false… Read More
  • df df command examples Displays the file system disk space usage. By default df -k displays output in bytes. $ df -k Filesystem           1K-blocks  &n… Read More
  • chown chown command examples chown command is used to change the owner and group of a file. To change owner to oracle and group to db on a file. i.e Change both owner and group at the same… Read More
  • chmod chmod command examples chmod command is used to change the permissions for a file or directory. Give full access to user and group (i.e read, write and execute ) on a specific file. $ chmod u… Read More
  • date date command examples Set the system date: $ date -s "01/31/2010 23:59:53" Once you’ve changed the system date, you should syncronize the hardware clock with the system date as shown below. $ hwcloc… Read More

0 comments:

Post a Comment