For systems using systemd (CentOS, etc.)
systemctl [stop/start/restart/enable/disable] service
nano is cool, though vi is more likely available if you're stuck without connectivity:
vi [filename]
(i to insert/edit, Esc to exit insert mode, :wq to save file and exit)
Create or extract tarballs:
tar -cvf [filename.tgz] [directory]
tar -xvf [filename.tgz]
Handy commands for testing Internet connectivity
Test outbound connection and path:
ping -c [number of packets to send] [host]
ping6 -c [number of packets to send] [host]
traceroute -m [max hops] [host]
(use -4 or -6 to specify test on ipv4 or ipv6)
Get external IP (using curl or wget):
curl http://wgetip.com/
wget -q -O - http://wgetip.com/
(ipv4/ipv6)
curl http://whatsmyipv6.org/backend.php
See network devices
ifconfig
ip a
Show local network routes:
ip r s
(to show only routes a given device: ip r s dev [device])
Check host record (useful for rDNS, mail PTR, etc.)
dig [host]
Show processes listening on local ports: