Skip to content

Instantly share code, notes, and snippets.

@Mat1az
Last active June 12, 2024 00:15
Show Gist options
  • Save Mat1az/b542acb7fea7393a94f0e05bf0c33976 to your computer and use it in GitHub Desktop.
Save Mat1az/b542acb7fea7393a94f0e05bf0c33976 to your computer and use it in GitHub Desktop.
CLI Cheatsheet

Add/Set IPv4

  • Windows
netsh interface ipv4 show interfaces
netsh interface ipv4 add address "name" 192.168.3.3 255.255.255.0
  • Linux
sudo ip addr add 192.168.3.3/24 dev enp4s0

Checksum

  • Windows
certutil -hashfile "file" SHA1/MD5...
  • Linux
sha1sum "file"
md5sum "file"
...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment