The command line looks intimidating — a blinking cursor and no buttons — but it's just a different way to talk to your computer, one clear instruction at a time. Nearly every security tool lives here, so getting comfortable is your gateway to the hands-on side of cyber. We'll go slow.
Why Security Pros Use Linux
Linux is the operating system of choice for cybersecurity professionals. It's free, open-source, powerful, and most security tools (Kali Linux, Wireshark, Metasploit, Nmap) are built for it. Understanding Linux is a fundamental skill for any security career.
Essential Commands
Open a terminal and you're in control. Here are the commands you'll use constantly:
$ ls
# List files and directories in the current location
$ pwd
# Print Working Directory — shows where you are
$ cd /path/to/dir
# Change Directory — navigate to a folder
$ cat filename.txt
# Display the contents of a file
$ grep "pattern" file
# Search for text patterns inside files
$ chmod 755 file
# Change file permissions (read/write/execute)
$ whoami
# Display the current logged-in user
$ ifconfig (or ip a)
# Show network interface info and IP addresses
$ ps aux
# List all currently running processes
$ sudo command
# Run a command with superuser (admin) privileges
File Permissions
Linux uses a permission system of r (read), w (write), x (execute) for three groups: owner, group, and other.
Example: -rwxr-xr--
Owner: rwx (full control), Group: r-x (read + execute), Other: r-- (read only)
You'll use these commands in later cybersecurity courses and labs!
🎯 Key Takeaway
The terminal lets you control a system precisely with typed commands. Learn a handful — moving between folders, listing files, reading permissions — and you've unlocked the environment most security work happens in.