« Généralités sur debian » : différence entre les versions

Aller à la navigation Aller à la recherche
Ligne 115 : Ligne 115 :
echo >> /etc/motd
echo >> /etc/motd
echo "server    : `hostname | cut -f 1 -d "."`" >> /etc/motd
echo "server    : `hostname | cut -f 1 -d "."`" >> /etc/motd
echo "ip        : `cat /etc/network/interfaces | grep "address" | head -n 1 | cut -f 2 -d " "`"  >> /etc/motd
echo "ip6 : `tac /etc/network/interfaces | grep "address" |  head -n 1 | cut -f 2 -d " "`" >> /etc/motd
echo "hostname  : `hostname`" >> /etc/motd
echo "hostname  : `hostname`" >> /etc/motd
echo >> /etc/motd
echo >> /etc/motd
4 203

modifications

Menu de navigation