by default returns an history of latest command ran on this login
it is ~the latest “HISTSIZE” commands. it can differ with the options of HISTCONTROL (for example ignoredups which ignore duplicates)
history | cut -d ' ' -f 4-
depending on the setup you might change 4 by 5/6 … Reference: https://www.poftut.com/linux-history-command-without-line-numbers/
When you pass some arguments like passwords, you can skip the registration of the command by adding a space before the command
command -pass XXXXXXXXXXXXXXXXXXXXXXXXX