Formal Command
getent passwd | cut -d : -f 6 | sed 's:$:/.bash_history:' | xargs -d '\n' grep -s -H -e "{{pattern}}"
Easy Command for same location of all users home directory
grep -e "{{pattern}}" /home/*/.bash_history
'Develop > Linux' 카테고리의 다른 글
File remove except the last five files (0) | 2019.02.13 |
---|---|
When too slow to dnf update (0) | 2018.11.20 |
[Docker] Run Mysql Server container and setup (0) | 2018.11.15 |
Json curl and a/b benchmark (0) | 2018.11.13 |
리눅스에서 PID 로 프로세스 동작 유무 체크 (0) | 2018.10.17 |