Forrest logo
back to the fixfiles tool

fixfiles:tldr:2a514

fixfiles: If specified with onboot, this fixfiles will record the current date in the `/.autorelabel` file, so that it can be used later to speed up labeling. If used with restore, the restore will only affect files that were modified today.
$ fixfiles -B
try on your machine

The command "fixfiles -B" refers to running the "fixfiles" utility with the "-B" option.

The "fixfiles" command is used in Linux systems to fix the security context of files, directories, and filesystems to match the expected values defined in the SELinux policy. SELinux (Security-Enhanced Linux) is a security module that provides mandatory access control policies.

The "-B" option in the command stands for "relabel entire filesystem." When used, it instructs "fixfiles" to relabel the entire system's filesystem based on the SELinux policy. This means that it will attempt to set the correct security contexts for all files and directories on the system, ensuring that they conform to the expected policy.

Relabeling the filesystem can be useful after a major system change, such as an upgrade or migration, where the security contexts of files may have been modified, leading to potential conflicts or issues with SELinux. The "fixfiles -B" command helps restore the appropriate security context across the entire filesystem.

This explanation was created by an AI. In most cases those are correct. But please always be careful and never run a command you are not sure if it is safe.
back to the fixfiles tool