I am playing around with MongoDB on my localhost and when using ps aux | grep, I got this
ubuntu 26701 0.2 0.6 96011 27851 pts/3 Sl+ 11:14 0:00 mongo -u mongouser -p xxxxxxxx -authenticationDatabase tmpdb
the xxxxxxxx part is not censored by me, I invoked mongo client with password from command line. How does ps know it's sensitive info?