Last active
September 10, 2021 20:28
-
-
Save stevebor1/1ac597d032401c627af15f20e36b38fe to your computer and use it in GitHub Desktop.
Log Open Files for a Process
This file contains hidden or 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
echo | gawk '{ print strftime("[%Y-%m-%d %H:%M:%S] "), $0 }' >> openfiles.txt | |
sudo lsof -p 26608 | wc -l >> openfiles.txt |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment