Wow, I just stumbled over less‘ PDF display capability and found this blog post with even more awsome features of less:
Less is more: the hidden treasure of less command
|
# less +53 /etc/httpd/httpd.conf |
Ok let us display an error at line number 53 (no need to scroll down all 52 lines) |
Search and highlight particular text: |
# less "+/*VirtualHost" /etc/httpd/httpd.conf |
lessfile and lesspipe are programs that can be used to modify the way the contents of a file are displayed in less. What this means is that less can automatically open up tar files, uncompress gzipped files, and even display something reasonable for graphics files. |
less command supports following extensions: |
- *.gif, *.jpeg, *.jpg, *.pcd, *.png, *.tga, *.tiff, *.tif
|
- *.tar.gz, *.tgz, *.tar.z, *.tar.dz
|
- *.jar, *.war, *.xpi, *.zip
|
Watch a log file
Watch maillog in real time, useful to troubleshoot mail server problem
less +F /var/log/maillog
less +F /var/log/message
You can also use tail command: |
|
|
Tags: Werkzeuge // Add Comment »
Discussion Area - Leave a Comment