General

Linux Commands

3 sections21 commands

File Operations

7 entries
  • ls -laList all files with details
  • find / -name '*.conf' 2>/dev/nullFind all .conf files
  • find / -perm -4000 2>/dev/nullFind SUID binaries
  • grep -r 'password' /etc/Search for password in /etc
  • chmod 777 fileFull permissions on file
  • chown user:group fileChange file owner
  • tar -xvzf archive.tar.gzExtract tar.gz archive

Network Commands

7 entries
  • ifconfig / ip aShow network interfaces
  • netstat -tulnpShow listening ports
  • ss -tulnpShow sockets (modern netstat)
  • curl -I <url>Get HTTP headers
  • wget <url>Download file
  • nc -lvnp <port>Start netcat listener
  • tcpdump -i eth0 port 80Capture packets on port 80

User & Process Management

7 entries
  • whoamiCurrent username
  • idUser ID and group info
  • sudo -lList sudo privileges
  • ps auxShow all running processes
  • cat /etc/passwdList all users
  • cat /etc/shadowPassword hashes (need root)
  • crontab -lList cron jobs