Skip to content

Instantly share code, notes, and snippets.

@MaximeCulea
Last active March 7, 2022 13:52
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 MaximeCulea/2ccd4b07e9e93f102039d3a94898ccde to your computer and use it in GitHub Desktop.
Save MaximeCulea/2ccd4b07e9e93f102039d3a94898ccde to your computer and use it in GitHub Desktop.
Get Info from a server with cli.
# https://www.cyberciti.biz/faq/how-to-find-my-public-ip-address-from-command-line-on-a-linux
echo $(dig +short myip.opendns.com @resolver1.opendns.com)
# @url https://www.tecmint.com/find-linux-server-public-ip-address
wget -qO- http://ipecho.net/plain | xargs echo
# Get PHP Version
https://www.thegeekdiary.com/how-to-check-the-php-version-on-linux
# Get Public server info
https://github.com/BeAPI/phpwpinfo
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment