cyberGUARDcyberGUARD
AlgoRitmCTF
News
Learn · Cheat sheets

Quick cheat sheets

The commands, ports and codes you reach for most — copy, print, keep handy.

Linux commands

Everyday terminal work and security checks.

Files & directories

ls -laAll files incl. hidden, with permissions
cd /var/logChange directory
pwdPrint working directory
cat file.txtPrint a file
less /var/log/syslogPage through a large file
find / -name '*.conf' 2>/dev/nullFind files by name
grep -ri 'error' /var/logSearch text recursively

Permissions

chmod 600 id_rsaOwner read/write only
chmod +x script.shMake executable
chown user:group fileChange owner
find / -perm -4000 2>/dev/nullFind SUID files (audit)

Processes & system

ps auxAll processes
top / htopLive resource monitor
kill -9 PIDForce-kill a process
systemctl status sshService status
journalctl -u ssh --since todayService logs
df -h · free -hDisk and memory

Users & security

whoami · idCurrent user and groups
sudo -lWhat sudo allows
last · lastbSuccessful / failed logins
grep 'Failed password' /var/log/auth.logSSH brute-force traces
sudo apt update && sudo apt upgradeUpdate the system
sudo ufw enable · sudo ufw statusEnable firewall and status