Could anyone help me blank the local terminal on bootup? I need the screen completely blank before a fullscreen app opens. I've removed everything but I still have -


I can manually remove it using

sudo sh -c "TERM=linux setterm -foreground black -clear all >/dev/tty0"

but putting this in sudo crontab -e, a systemctl script, or /etc/rc.local isn't working.

The service works if I run it manually, sudo systemctl start black.service so I think it's just a timing issue, can I make it wait for the user to logon?

  • If I recall, that prompt can be modified via an environment variable. PS1? So export PS1=''
    – Abel
    Nov 29, 2023 at 12:10
  • not sure where I'd put that? I tried it in terminal and nothing happened, whereas the command above works if typed in manually Nov 29, 2023 at 12:17
  • I've got it work in a hacky way, but not the most elegant. Ideally would like a nicer soloution. I've added /bin/sleep 0.1 before the commands in the sh file and just repeated all it about 50 times. Nov 29, 2023 at 12:36
  • You can try putting it in ~/.bashrc
    – Abel
    Nov 29, 2023 at 13:23
  • I also tried that, it didn't work Nov 29, 2023 at 15:02

1 Answer 1


The pi@raspberryPi:~$ is created in .bashrc which is called by the .profile file. Those two file can be changed to to do something else.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.