Linux Command Cheat Sheet - caitlinmallen/TechWiki GitHub Wiki

Linux Command Cheat Sheet

          \     .--.
	   \   |o_o |
	       |:_/ |
	      //   \ \
	     (|     | )
	    /'\_   _/`\
	    \___)=(___/

Network Commands

  • ping [host]: Sends ICMP echo request packets to the target and waits for a reply
  • whois [domain]: Gets whois information for the domain
  • dig [domain]: Get DNS information for the domain
  • dig -x host: Reverse lookup host
  • wget file: Download file
  • wget -c file: Continue a stopped download
  • watch ss -tp: Network connection
  • netstat -ant: TCP connections -anu=udp
  • netstat -tulpn: Connection with PIDs
  • lsof -i: Established connections
  • smb:///share: Access windows smb share
  • share user x.x.x.x c$: Mount Windows share
  • smbclient -U user \\\: SMB connect
  • ifconfig eth# /: Set IP and Netmask
  • ifconfig eth0:1 /: Set virtual interface

System Info Commands

Utility Commands

File Commands

Misc Commands

"Cover Your Tracks" Commands

File System Structure

Linux Files

⚠️ **GitHub.com Fallback** ⚠️