Ajouter un lien:
5 results for tags cli x

GitHub - chrisallenlane/cheat: cheat allows you to create and view interactive cheatsheets on the command-line. It was designed to help remind *nix system administrators of options for commands that they use frequently, but not frequently enough to remember.

Play Space Invaders - An Old School Arcade Game on Linux Terminal

commandlinefu

How to get Public IP from Linux Terminal?

Curl output in plain text format:

curl icanhazip.com
curl ifconfig.me
curl curlmyip.com
curl ip.appspot.com
curl ipinfo.io/ip
curl ipecho.net/plain
curl www.trackip.net/i

curl output in JSON format:

curl ipinfo.io/json
curl ifconfig.me/all.json
curl www.trackip.net/ip?json (bit ugly)

curl output in XML format:

curl ifconfig.me/all.xml

curl all IP details – The motherload

curl ifconfig.me/all

Using DYNDNS (Useful when you’re using DYNDNS service)

curl -s 'http://checkip.dyndns.org' | sed 's/.*Current IP Address: \([0-9\.]*\).*/\1/g'
curl -s http://checkip.dyndns.org/ | grep -o "[[:digit:].]\+"

Using wget instead of curl

wget http://ipecho.net/plain -O - -q ; echo
wget http://observebox.com/ip -O - -q ; echo

Using host and dig command (cause we can)

You can also use host and dig command assuming they are available or installed

host -t a dartsclink.com | sed 's/.*has address //'
dig +short myip.opendns.com @resolver1.opendns.com

Sample bash script:

#!/bin/bash

PUBLIC_IP=`wget http://ipecho.net/plain -O - -q ; echo`
echo $PUBLIC_IP

Testez votre vitesse de connexion depuis votre terminal avec Speedtest-cli

Tout d’abord téléchargez l’appli:

   wget -O speedtest-cli https://raw.githubusercontent.com/sivel/speedtest-cli/master/speedtest_cli.py

Puis autorisez son exécution:

   chmod +x speedtest-cli

Exécutez l’archive:

   ./speedtest-cli