← 返回命令列表

Linux command

aa-remove-unknown 命令

安全

权限或系统影响较大,执行前请核对目标。

常用示例

Example

sudo aa-remove-unknown -n

Remove

sudo aa-remove-unknown

说明

aa-remove-unknown removes AppArmor profiles that are currently loaded in the kernel but no longer have corresponding profile files in the configuration directory (/etc/apparmor.d). This helps clean up orphaned profiles after packages are removed or profiles are deleted.

参数

-n, --dry-run
Show which profiles would be removed without actually removing them
-h, --help
Display help information

FAQ

What is the aa-remove-unknown command used for?

aa-remove-unknown removes AppArmor profiles that are currently loaded in the kernel but no longer have corresponding profile files in the configuration directory (/etc/apparmor.d). This helps clean up orphaned profiles after packages are removed or profiles are deleted.

How do I run a basic aa-remove-unknown example?

Run `sudo aa-remove-unknown -n` in a terminal, then adjust file names, paths, flags, or remote targets for your system.

What does -n, --dry-run do in aa-remove-unknown?

Show which profiles would be removed without actually removing them