@swaggboi
Important to note that many systems have "noclobber" option enabled in systemwide bashrc, that prevents overwriting files by redirecting output to them.
In this case you have to use ">|" to force overwriting, so it would be "true >| ~/.ssh/known_hosts".
Here is what looks like a nice article explaining this in a bit more detail: https://www.geeksforgeeks.org/how-to-protect-linux-shell-file-using-noclobber-in-bash-shell/
@m0xee On my systems all it takes is something like > /etc/fstab but shellcheck will complain if you don’t explicitly run true before the redirect (and as you can tell, I’m one who adheres to best practices!)