Tech-Talk
Technology tinkering notes.
Thursday, May 7, 2015
Search bash History for All Users
To search bash history for all users, for a given command:
find /home/ -name .bash_history -type f -exec grep -H $cmd {} \; | more
No comments:
Post a Comment
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment