lynis command
performs a security audit
Typical usage: system health scan, security auditing, configuration check, system hardeningIntroduction 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 system | Package name | Installation |
---|---|---|
AlmaLinux | lynis |
|
Arch Linux | lynis |
|
Debian | lynis |
|
Fedora | lynis |
|
Red Hat Enterprise Linux | lynis |
|
Rocky Linux | lynis |
|
openSUSE | lynis |
|
Ubuntu | lynis |
|
Your Linux distribution using a different package? Share your feedback.
Usage
Available options
Long option | Short option | Description |
---|---|---|
--debug | -v | Show additional debug information |
--no-colors | Don't use colors in output | |
--profile | Define an additional profile other than the default default.prf and custom.prf | |
--quiet | -q | Less output to the screen |
--verbose | -v | Verbose output to show more details |
--view-manpage | --man | Show 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.
- Lynis hardening index
- How to update Lynis
- How to keep Lynis up-to-date?
- Viewing available test categories in Lynis
- How to use Lynis
- How to use Lynis plugins
- Installation of Lynis on Arch Linux systems
- How to create custom tests in Lynis
- Troubleshooting guide for Lynis
- Unix security audit: Perform an audit in 3 minutes