If you wish to find what commands you have previously executed in a Linux environment you can use the SSH history command. In addition to that, you can also look in the file ~/.bash_history if you’re using bash. In this article we’ll cover the most basic usages of the SSH history command for easy server monitoring and admin auditing:
history
history -c
history | grep {Command to look for}
Test your Linux knowledge on a Dedicated Server or an SSD VPS machine. Learn new SSH Commands or master your Linux history command now! Get a shared hosting account with SSH and 40% discount OFF the regular price now!