Created
October 27, 2022 04:08
-
-
Save besteban1989/6275cd16f9202f042bebea9485642da0 to your computer and use it in GitHub Desktop.
Bash utils
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# show bash history of commands for all users, replace the * with a user name to filter the results to a specific user. | |
sudo su | |
grep -e "$pattern" /home/*/.bash_history |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment