ifconfig -l (—list)
a. ifconfig en0
b. arp -a
arp = Address resolution display and control
sed -e ‘s/.255//g’
<aside> 💡 Substitution command
In some versions of sed, the expression must be preceded by -e to indicate that an expression follows.
The s stands for substitute, while the g stands for global, which means that all matching occurrences in the line would be replaced
</aside>
ifconfig en1 | grep broadcast
netstat -nr | grep default | grep en0
host who.int
/etc/resolv.conf
nslookup who.int 8.8.8.8
First dig + short who.int
then whois <that ip>
dig +short 42.fr
traceroute who.int
nat (10.60.1.1) = NAT Server
ipconfig getoption en0 server_identifier
host $(ipconfig getifaddr en0)
/etc/hosts
write “46.19.122.85 intra.42.fr” to /etc/hosts