To start, stop, or restart AppArmor on a Linux system, you can use the following commands:
Start AppArmor:
$ sudo service apparmor start
Stop AppArmor:
$ sudo service apparmor stop
Restart AppArmor:
$ sudo service apparmor restart
Note: The exact commands may vary depending on the distribution you are using. On some systems, you may use “systemctl” instead of “service” to control the service.