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 משתמשים שמצאו מאמר זה מועיל
?האם התשובה שקיבלתם הייתה מועילה

מאמרים קשורים

SSH ip command

If you wish to obtain information about your server’s IP on a Linux machine using SSH you can use...

SSH rm command

If you wish to remove a file or folder from your Linux system you can use SSH rm command. In this...

SSH echo command

One of the most useful commands in a Linux environment is echo. With it, you can provide output...

SSH cd command

SSH cd command is mainly used to navigate in your Linux environment. In this article, we’ll show...

SSH mv command

If you would like to move a file from one location to another on your Linux Dedicated Server or...

Powered by WHMCompleteSolution