Skip to content

Instantly share code, notes, and snippets.

@arbal
Created July 19, 2019 23:55
Show Gist options
  • Save arbal/2dc79abdab17addf9f3337a1c029ec43 to your computer and use it in GitHub Desktop.
Save arbal/2dc79abdab17addf9f3337a1c029ec43 to your computer and use it in GitHub Desktop.
BSD host info
echo '##### HOST #####' && date && hostname && uname -ips && freebsd-version -ru && ifconfig|sed '/inet /!d;/127.0/d;/dr:\s/d;s/^.*:\(.*\)B.*$/\1/' | awk -F ' ' '{ print $2 }' && echo '################'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment