Linux Network Commands for Fixing Internet Problems
Tools You'll Need
Terminalnmcliping
ip a: show network adapters and IP addresses
ping -c 4 8.8.8.8: test the internet connection (no reply means no internet)
ping -c 4 google.com: test that DNS works (if the first works but this fails, it's a DNS problem)
nmcli device wifi list: show Wi-Fi networks nearby
nmcli device wifi connect "Network Name" password "yourpassword": connect from the terminal
resolvectl status: show which DNS servers are used
sudo systemctl restart NetworkManager: restart networking
Wi-Fi not working at all after installing Linux? Check for a missing driver (see our Linux drivers tip), and use phone USB tethering to get online meanwhile.