Jump to content

Cheatsheet: Difference between revisions

Line 1,072:
sudo fdisk -l ==> Partition & FS Type details
parted ==> List out partitions and modify them
 
=== IP DNS Info ===
 
; IP
ip addr show (ip a)
ifconfig
hostname -I
ip route get 8.8.8.8 | head -1 | awk '{print $7}'
ip route get 8.8.8.8 | head -1 | cut -d' ' -f7
 
; DNS
cat /etc/resolv.conf
nmcli dev show | grep DNS
systemd-resolve --status
resolvectl status | grep -1 'DNS Server'
 
=== Misc ===
Cookies help us deliver our services. By using our services, you agree to our use of cookies.