SSH history command

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:

Display the last commands run with SSH history command

history

Clear your command history with SSH

history -c

Search for a command with history and grep with SSH

history | grep {Command to look for}
  • 0 Users Found This Useful
Was this answer helpful?

Related Articles

Linux tar Command

The Linux tar command is used to compress and extract files to and from an archive. In this...

How to Install WordPress via SSH

Since WordPress is the most widely used CMS it’s installation process has been made as simple and...

SSH Execute Command on a Remote server

Via SSH you can connect to a remote server’s shell. This will allow you to execute commands on...

How to connect to your shared hosting account via SFTP with FileZilla

SFTP is a convenient way to use SSH, while also using the interface of a simple FTP. In order to...

SSH netstat command

If you wish to debug or track statistics of your network in a Linux environment you can use SSH...