General
Linux Commands
3 sections21 commands
File Operations
7 entriesCommand / syntaxDescription
ls -laList all files with detailsfind / -name '*.conf' 2>/dev/nullFind all .conf filesfind / -perm -4000 2>/dev/nullFind SUID binariesgrep -r 'password' /etc/Search for password in /etcchmod 777 fileFull permissions on filechown user:group fileChange file ownertar -xvzf archive.tar.gzExtract tar.gz archive
Network Commands
7 entriesCommand / syntaxDescription
ifconfig / ip aShow network interfacesnetstat -tulnpShow listening portsss -tulnpShow sockets (modern netstat)curl -I <url>Get HTTP headerswget <url>Download filenc -lvnp <port>Start netcat listenertcpdump -i eth0 port 80Capture packets on port 80
User & Process Management
7 entriesCommand / syntaxDescription
whoamiCurrent usernameidUser ID and group infosudo -lList sudo privilegesps auxShow all running processescat /etc/passwdList all userscat /etc/shadowPassword hashes (need root)crontab -lList cron jobs