Task 5
Task 5
1. What is dmesg?
Memory-related logs.
dmesg | tail
Example:
dig google.com
Common uses:
dig google.com MX
To find the default gateway, you can use the following commands:
ip route (Preferred):
ip route show
Look for the line starting with default (e.g., default via 192.168.1.1).
route (Legacy):
route -n
Using ip addr:
ip addr show
Using ifconfig:
ifconfig
4. network:
5. version: 2
6. ethernets:
7. eth0:
8. addresses:
9. - 192.168.1.100/24
11. nameservers:
netstat (Legacy):
netstat -tuln
Options:
ss -tuln
lsof:
lsof -i -P -n
Lists all open ports along with associated processes.