Exibir configurações de rede
Publicado por Sathioro 03/12/2006
[ Hits: 6.950 ]
Esse script permite juntar todas as informações de configuração da sua rede (eth0) num formato bem amigável, exemplo:
Endereço IP: xxx.xxx.xxx.xxx
Máscara de rede: xxx.xxx.xxx.xxx
Gateway: xxx.xxx.xxx.xxx
DHCP: xxx.xxx.xxx.xxx
DNS Primário: xxx.xxx.xxx.xxx
DNS Secundário: xxx.xxx.xxx.xxx
#!/bin/bash ifconfig eth0 | grep -w 'inet'| awk ' { print $2 }'; ifconfig eth0 | grep -w 'inet'| awk ' { print $3 }'; ifconfig eth0 | grep -w 'inet'| awk ' { print $4 } '; route | grep -w 'default'| awk ' { print echo " Gateway " $2 } '; cat /etc/resolv.conf |grep name |awk '{ print $1 $2 } '
Ajuste de horário e sincronismo
Como gerar um podcast a partir de um livro em PDF
Automatizando digitação de códigos 2FA no browser
Resolver problemas de Internet
Como compartilhar a tela do Ubuntu com uma Smart TV (LG, Samsung, etc.)
Conheça a 4Devs, caixa de ferramentas online para desenvolvedores
Como converter um vídeo MP4 para um GIF para publicar no README.md do seu repositório Github
Como Instalar o Microsoft Teams no Linux Ubuntu