Skip to content

Instantly share code, notes, and snippets.

@ben-z
Created June 10, 2021 08:18
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ben-z/0f38532ab02ffddb0354bc49499674f3 to your computer and use it in GitHub Desktop.
Save ben-z/0f38532ab02ffddb0354bc49499674f3 to your computer and use it in GitHub Desktop.
Print system info
#!/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