Created
June 10, 2021 08:18
-
-
Save ben-z/0f38532ab02ffddb0354bc49499674f3 to your computer and use it in GitHub Desktop.
Print system info
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
#!/bin/bash | |
#SBATCH --time=0-00:01:00 # time (DD-HH:MM:ss) | |
# Print system info (useful on shared HPCs) | |
# The example header is for running on Compute Canada | |
# https://docs.computecanada.ca/wiki/Running_jobs | |
echo "------ Gathering System Info" | |
set -x | |
hostname | |
uname -a | |
whoami | |
id | |
pwd | |
ls -al | |
df -h | |
printenv | |
nvidia-smi | |
lscpu | |
lspci | |
lshw | |
set +x | |
echo "------ Done gathering System Info" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment