O'Reilly logo
  • Alexander Jaworowski thinks this is interesting:

sudo systemctl stop serial-getty@ttyAMA0

From

Cover of Exploring Raspberry Pi

Note

Disable with
The correct way to stop a service ever being enabled again is to use:
systemctl mask serial-getty@ttyAMA0.service