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
pwdshows the current directory.ls -lalists files with details.ip addrshows network interfaces and IP addresses.pingtests 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
- Run
ip addrto confirm the interface has an IP address. - Run
ip routeto confirm there is a default gateway. - Ping the gateway to test local network reachability.
- Ping a public IP address to test outside connectivity.
- Use
digornslookupto 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.