Back to BlogsLinux

Linux Commands for Hackers — Complete Cheat Sheet

Anuj Singh (Admin) 18 March 2026 500 views

Linux Commands for Ethical Hackers

File System

  • ls -la — List all files including hidden
  • find / -name "*.conf" 2>/dev/null — Find config files
  • grep -r "password" /var/www/ — Search for passwords
  • chmod +x script.sh — Make script executable

Networking

  • ifconfig / ip addr — Show network interfaces
  • netstat -tulnp — Show open ports
  • curl -I target.com — HTTP headers
  • wget -r target.com — Download website

Process Management

  • ps aux — List all processes
  • kill -9 PID — Force kill process
  • top / htop — Resource monitor

Master the command line in our Command Mastery course!

Want to Learn This Practically?

Subscribe to ONLY4YOU and get hands-on access to 40+ premium courses — Ethical Hacking, Kali Linux, Metasploit, Network Hacking, Bug Bounty & more!