#!/bin/sh
#
# Show ip debîan (9/10) for 2 interfaces (eth0, eth1)
# ipv4
hostname --ip-address | awk '{ print $2 }'
# ipv6
hostname --ip-address | awk '{ print $1 }'
# OR
ip=`hostname --ip-address`
echo $ip
bash ip shell
echosystem.fr
<iframe width="100%" height="488" src="https://snippet.echosystem.fr?embed=5980ef59459ab" type="text/html"></iframe>
Texte seul - Permalink - Snippet public posté le 09/11/2021