Linux
Operating systems, shells, processes, filesystems, networking fundamentals, and server operations.
Articles
29 totalCIDR /24 vs /26: Find the subnet for 10.20.30.70 and count Azure IPs
Split a /24 into four /26 subnets, locate 10.20.30.70, and distinguish 62 conventional IPv4 host addresses from 59 Azure-assignable addresses.
Linux3 min
Ubuntu apt update vs apt upgrade: Refreshing the package index is not an upgrade
Follow the repository, local package index, and installed package to see what apt update and apt upgrade each change.
Linux3 min
Linux Directory Size: Why ls -ldh and du -sh Disagree
Distinguish a directory entry’s size from disk usage beneath it, and find large subdirectories including hidden ones.
Linux3 min
Linux kill vs kill -9: Confirm the process and allow cleanup
Compare SIGTERM and SIGKILL on a process you start yourself, then verify its PID, exit status, and whether cleanup ran.
Linux3 min
gzip says a directory cannot be compressed: create and verify a tar.gz
Use tar -czf to archive and compress a directory, inspect its members, extract to a separate folder, and compare restored files.
Linux3 min
Why cd Is a Bash Builtin: type, which, and the Current Directory
See why cd in a child shell cannot change its parent shell, and use type to distinguish builtins from executable files.
Linux3 min
Linux find -name '*.log': Why nested files disappear without quotes
A shell can expand an unquoted *.log before find receives it. Reproduce the missing nested file, then check quoting, file type, and search path.
Linux3 min
chmod 755 vs u+x: Add execute permission without changing other bits
Starting from mode 640, compare how chmod u+x adds only owner execute permission while chmod 755 replaces the whole permission mode.
Linux3 min
Find errors across Linux logs with grep: Case, filenames, and line numbers
Search two sample logs with grep -i, -n, -H, and surrounding context; distinguish no match from a file error before concluding nothing happened.
Linux3 min
Linux head vs. tail: Read the Beginning, End, or New Log Lines
Inspect a long log with head, tail, and less, and distinguish tail -f from tail -n 0 -f when watching new lines.
Linux3 min

