lynis command

performs a security audit

Typical usage: system health scan, security auditing, configuration check, system hardening

Introduction into lynis

The lynis command is a tool for Linux systems to perform a security audit of the system. It introspects the system configuration, package manager, and other components. The output is a set of warnings and suggestions to improve the security level of the system, which can help with system hardening.

Installation

When lynis is not installed by default, it can be added to the system using the relevant software package.

Package information for lynis

Operating systemPackage nameInstallation
AlmaLinuxlynis
dnf install lynis
Arch Linuxlynis
pacman -S lynis
Debianlynis
apt install lynis
Fedoralynis
dnf install lynis
Red Hat Enterprise Linuxlynis
dnf install lynis
Rocky Linuxlynis
dnf install lynis
openSUSElynis
zypper install lynis
Ubuntulynis
apt install lynis

Your Linux distribution using a different package? Share your feedback.

Usage

Available options

Long optionShort optionDescription
--debug-vShow additional debug information
--no-colorsDon't use colors in output
--profileDefine an additional profile other than the default default.prf and custom.prf
--quiet-qLess output to the screen
--verbose-vVerbose output to show more details
--view-manpage--manShow man page

Missing an option in this overview? Share your feedback.

Examples using lynis

Run normal scan

lynis audit system

Frequently Asked Questions

What is the lynis command and its purpose?

The lynis command is a command-line tool to perform a security audit of the system

Which package provides the lynis command?

The command lynis is provided by the lynis package.

Relevant articles using the lynis command

The following articles include an example on how to use lynis and might be worth further exploring.