// Comparison

Black Hat Bash vs Linux Basics for Hackers: Which Should You Read?

Two cybersecurity books on Linux, compared honestly: who each is for, what each does best, and which to read first.

Intermediate
4/52024
Black Hat Bash

Creative Scripting for Hackers and Pentesters

Nick Aleks, Dolev Farhi

Nick Aleks and Dolev Farhi on getting offensive work done with the shell: privilege escalation tooling, lateral movement, and pipelining bash with the rest of the toolkit.

Beginner
4/52025
Linux Basics for Hackers

Getting Started with Networking, Scripting, and Security in Kali

OccupyTheWeb

OccupyTheWeb's introduction to Linux from the angle that hackers and pentesters actually need it: shells, networking, scripting, and Kali tooling.

Read this if

Pentesters and red teamers who land on a Linux box and need to do offensive work with whatever bash is already there. The book covers privilege escalation, lateral movement, log tampering, and the practical recipes that bash actually shines at.
Beginners with no Linux background who need just enough fluency to follow security tutorials, run security tools, and not get lost. Required prerequisite for most pentest, OSCP, and CTF starting paths.

Skip this if

Beginners with no shell-scripting fluency, or readers who only work on Windows. The book assumes you can write a basic for-loop and an if-conditional; the value is in the offensive idioms.
Anyone who already uses Linux daily. The book is intentionally introductory; experienced users will find every chapter familiar.

Key takeaways

  • Most offensive bash is data plumbing: enumerate, parse, pivot, exfiltrate. The book's framing makes the workflow explicit instead of magic.
  • Living-off-the-land on Linux is a real strategy; bash + awk + sed + curl is often more reliable than dropping a custom binary on a hardened target.
  • The chapters on log tampering, persistence via cron / systemd, and privilege escalation chains are the practical core for any operator who finishes a foothold and needs to keep moving.
  • Linux fluency for security work is a small, finite skill: shell, file ops, services, networking commands, basic scripting. The book covers exactly that and nothing more.
  • Type every command. The book is muscle-memory training disguised as a reference; passive reading wastes the time.
  • Kali is a defaults-and-tooling distro, not a different OS; understanding base Linux means you'll never be confused when the tool isn't pre-installed.

How they compare

Black Hat Bash and Linux Basics for Hackers are both rated 4/5 in our catalog. Pick by topic preference and reading style rather than by rating.

Black Hat Bash is pitched at intermediate level. Linux Basics for Hackers is pitched at beginner level. Read the easier one first if you're not yet comfortable with the topic.

Black Hat Bash and Linux Basics for Hackers both cover Linux, so reading them in sequence reinforces the same material from different angles.

Keep reading

Related topics