Results 1 to 6 of 6

Thread: How do I view "/var/log/rkhunter.log" a page at a time?

  1. #1
    Join Date
    Jan 2014
    Location
    Statham,GA USA
    Beans
    212
    Distro
    Ubuntu 12.04 Precise Pangolin

    How do I view "/var/log/rkhunter.log" a page at a time?

    This is my 2nd try at Ubuntu. I have forgotten all I learned on my 1st try. This is a two part question - how do I view It and how do I read it a page at a time? Ben
    Last edited by Iowan; January 18th, 2014 at 10:51 PM. Reason: Normalize font

  2. #2
    Join Date
    Jan 2006
    Location
    Not heaven... Iowa
    Beans
    Hidden!
    Distro
    Ubuntu

    Re: How do I view "/var/log/rkhunter.log" a page at a time?

    Try less /var/log/rkhunter.log
    sudo might be necessary if it balks at 'permission denied"
    Linux User #415691 Ubuntu User #8629
    Iowa Team (LoCo): [Wiki] [Launchpad]
    IRC channel: #ubuntu-us-ia on irc.freenode.net

  3. #3
    Join Date
    Feb 2010
    Location
    Summerwind
    Beans
    11,734
    Distro
    Ubuntu Development Release

    Re: How do I view "/var/log/rkhunter.log" a page at a time?

    I use the following, but the log is only available when open immediately after running rkhunter while the output is still visible in the terminal.

    Code:
    gksudo gedit /var/log/rkhunter.log
    Last edited by Frogs Hair; January 18th, 2014 at 11:08 PM.
    “Start where you are. Use what you have. Do what you can."

    Ubuntu Documentation Search: Popular Pages
    Ubuntu: Security Basics
    Ubuntu: Manual

  4. #4
    Join Date
    Aug 2012
    Beans
    Hidden!

    Re: How do I view "/var/log/rkhunter.log" a page at a time?

    Quote Originally Posted by bc.haynes View Post
    This is my 2nd try at Ubuntu. I have forgotten all I learned on my 1st try. This is a two part question - how do I view It and how do I read it a page at a time? Ben
    As as been noted above "gksu gedit" for graphical, is the easiest (gksu or gksudo, as the log is owned by root and gedit is a graphical application).

    For "one page at a time" in terminal, I just "cat" the file and pipe its output through "more". From which point using the spacebar will scroll a page at a time, or the enter button a line at a time; to quit during the output use "q" on the keyboard. The command,
    Code:
    sudo cat /var/log/rkhunter.log | more -d
    the "-d" switch on "more" causes it to give out instructions for use.
    Last edited by coldcritter64; January 19th, 2014 at 08:02 AM. Reason: altered wording last sentence

  5. #5
    squakie is offline I Ubuntu, Therefore, I Am
    Join Date
    Oct 2012
    Beans
    2,238
    Distro
    Ubuntu 14.04 Trusty Tahr

    Re: How do I view "/var/log/rkhunter.log" a page at a time?

    Iown's is the easiest way to go, and the less command being used lets you constantly scroll up or down in the output - not just a pause and then dump another page. Piping to more only gives a pause then dumps the next page - no scrolling up or down (at least when I hvae used it - that's why I've stuck with "less").
    Last edited by squakie; January 19th, 2014 at 08:57 AM.

  6. #6
    Join Date
    Aug 2012
    Beans
    Hidden!

    Re: How do I view "/var/log/rkhunter.log" a page at a time?

    Quote Originally Posted by squakie View Post
    Iown's is the easiest way to go, and the less command being used lets you constantly scroll up or down in the output - not just a pause and then dump another page. Piping to more only gives a pause then dumps the next page - no scrolling up or down (at least when I hvae used it - that's why I've stuck with "less").
    True, Iowan's command supports scrolling better / natively.

    If gnome-terminal is set to not "scroll on output" in preferences, ie the tick box is cleared you can mouse button scroll back through previous output or scroll back fully to the end and continue using the command, just tested here on a Debian 7 install, gnome desktop, I'm sure this also works on my Ubuntu installs, I use it regularly. Cheers.

    Edit: I should also note I always set gnome-terminal to "unlimited" for scrollback on the scrolling tab. It stops any loss of output when using the terminal this way.
    Last edited by coldcritter64; January 19th, 2014 at 10:49 AM. Reason: extra note re. terminal use and scrollback

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •