Exibir configurações de rede
Publicado por Sathioro 03/12/2006
[ Hits: 6.737 ]
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 } '
Protegendo arquivos contra acessos simultâneos
Deletando evicted pods no Kubernetes
Script para rodar software Mr Bayes em paralelo
Atualizar o macOS no Mac - Opencore Legacy Patcher
Crie alias para as tarefas que possuam longas linhas de comando - bash e zsh
Criando um gateway de internet com o Debian
Configuração básica do Conky para mostrar informações sobre a sua máquina no Desktop
Aprenda a criar músicas com Inteligência Artificial usando Suno AI
Instalando e usando o Dconf Editor, o "regedit" para Linux
Como instalar o navegador TOR no seu Linux
PROBLEMA COM SCRIPT USANDO SED {DÚVIDA}. (0)
validando quandidade de leitura no read[DUVIDA] (7)
Sistema da Coréia do Norte - Red Star OS (75)