15+ Rkhunter usages with example – Unix/Linux

We have already discussed about the installation of Rkhunter on Linux machine, Refer this Steps to install Rkhunter.

Here I am explaining some common uses/switches of Rkhunter with examples.
Switches with example:

1, -c, –check

Check the local system.

–config-check

Check the configuration file(s), then exit.

2, –cronjob

Run as a cron job (implies -c, --sk and --nocolors options)

3, Log entries:
3.1 -l, –logfile [file]

Write to a logfile (Default is /var/log/rkhunter.log)

3.2 –append-log

Append to the logfile, do not overwrite.

3.3 –noappend-log

Do not append to the logfile, overwrite it.

3.4 –nolog

Do not write to a logfile.

4, –debug

Debug mode (Do not use unless asked to do so).

5, –disable [,…]

Disable specific tests (Default is to disable no tests).

6, –enable [,…]

Enable specific tests (Default is to enable all tests).

7, –nocolors

Use black and white output.

8, –nomow, –no-mail-on-warning

Do not send a message if warnings occur.

9, –ns, –nosummary

Do not show the summary of check results.

10, –summary

Show the summary of system check results (This is the default).

11, –update

Check for updates to database files.

12, -V, –version

Display the version number, then exit.

13, -q, –quiet

Quiet mode (no output at all).

14, -h, –help

Display this help menu, then exit.

That’s it !!

Related:
Steps to install Rkhunter

Arunlal Ashok

Linux Server Administrator. I'm dealing with Linux servers since 2012. I started this blog to share and discuss my ideas with the world. Check My Profile!! in uPwork (oDesk) and let me know if you need any assistance. Thanks!!

You may also like...

Leave a Reply

Your email address will not be published. Required fields are marked *