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

Post navigation

Arunlal A

Senior System Developer at Zeta. Linux lover. Traveller. Let's connect! Whether you're a seasoned DevOps pro or just starting your journey, I'm always eager to engage with like-minded individuals. Follow my blog for regular updates, connect on social media, and let's embark on this DevOps adventure together! Happy coding and deploying!

Leave a Reply

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