Back to blog

Tutorials ยท 2026-04-05

Linux Terminal Notes for Beginners

A starter list of commands I keep using while practicing networking and security labs.

Useful commands

  • pwd shows the current directory.
  • ls -la lists files with details.
  • ip addr shows network interfaces and IP addresses.
  • ping tests basic connectivity.

Networking commands I use often

ip addr helps me confirm whether the machine has an IP address. ip route shows the default gateway and routing table. ping checks basic reachability. traceroute shows the path traffic takes toward a destination. ss -tuln shows listening TCP and UDP ports.

How I think while using commands

A command is useful only if I understand what question it answers. For example, ping 8.8.8.8 can test whether I can reach an external IP address, but it does not prove DNS is working. If an IP ping works but a domain name fails, DNS may be the problem.

Small troubleshooting flow

  1. Run ip addr to confirm the interface has an IP address.
  2. Run ip route to confirm there is a default gateway.
  3. Ping the gateway to test local network reachability.
  4. Ping a public IP address to test outside connectivity.
  5. Use dig or nslookup to test DNS.

Practice note

I am focusing on understanding what each command tells me instead of memorizing long command lists.

My goal is to build a habit: run a command, write down what I expected, compare it with the result, and explain what the result proves. That habit makes terminal practice more useful for networking and cybersecurity.