Created
December 17, 2022 08:05
-
-
Save wasdee/ec86761f949f67503ed3a6b5976621ba to your computer and use it in GitHub Desktop.
add datetime bash and create top log
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
#!/usr/bin/env bash | |
now=$(date +"%Y_%m_%d-%H_%M_%S") | |
top -b -n 120 > "top-120iters-$now.txt" | |
# this takes 120 iterations of top, which is 120*3 seconds = 6 minutes |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment