Linux Command Security Cheat Sheet
Browse interactive, searchable commands for server audit reviews, netstat routing checks, and logs auditing.
How It Works
- Search or filter through categorized Linux command references: System Hardening, User Audits, Network Sockets, File Integrity, and Log Investigation.
- Each command includes syntax examples, security explanations, and one-click copy functionality.
- Covers modern utilities (ss, journalctl, find, chmod, ufw) as well as legacy forensics tools.
Primary Use Cases
- Quick reference during live incident response and server breach investigations.
- Hardening Linux servers against unauthorized SSH access and privilege escalation.
- Auditing listening network ports, active users, and suspicious cron jobs.
Common Security Pitfalls
- Using legacy netstat instead of modern ss for socket investigation on contemporary Linux kernels.
- Applying chmod 777 permissions to solve permission issues, completely disabling file access security.
Frequently Asked Questions
- What is the command to check all listening TCP ports on Linux?
- 'ss -tuln' or 'ss -tulpn' (with sudo) lists all listening TCP and UDP sockets with their associated process names and PIDs.
- How do you search for files modified in the last 24 hours in Linux?
- 'find / -mtime -1 -ls' searches the filesystem for files modified within the past 24 hours, essential for identifying attacker drops.
References & Standards