Skip to content

Instantly share code, notes, and snippets.

View srueg's full-sized avatar

Simon Rüegg srueg

  • Apple
  • London
View GitHub Profile
@srueg
srueg / Cheatsheet.md
Last active March 16, 2018 10:56
Cheatsheet

Linux

  • show LVM volume groups: vgs
  • show LVM logical volumes: lvs
  • show swap: cat /proc/swaps
  • check remote TLS cert: openssl s_client -connect host.net:443
  • check certificate: openssl x509 -in certificate.crt -text -noout
  • tar: tar -czvf archive.tar.gz /directory-or-file
  • untar: tar -xzvf archive.tar.gz -C /tmp
  • show largest files: find / -type f -exec du -Sh {} + | sort -rh | head -n 5

Keybase proof

I hereby claim:

  • I am srueg on github.
  • I am srueg (https://keybase.io/srueg) on keybase.
  • I have a public key whose fingerprint is C3FA 13B3 079F BE0F 2923 D447 B3C2 4BF6 A8B6 7837

To claim this, I am signing this object: