Skip to content

Instantly share code, notes, and snippets.

@leraux
Last active January 26, 2021 16:19
Show Gist options
  • Save leraux/c11535bedbd62ed2afc1b6748c14730c to your computer and use it in GitHub Desktop.
Save leraux/c11535bedbd62ed2afc1b6748c14730c to your computer and use it in GitHub Desktop.
  • cat /etc/os-release

    It returns Name, Version, ID, Pretty_Name and other details

  • sysctl -a

    It returns all available Kernel Parameters

  • lscpu

    It returns CPU Architecture Information

  • cat /proc/cpuinfo | grep processor

    It returns the number of available processors

  • cat /proc/cpuinfo |grep cpu\ cores |uniq

    It returns the number of available cores

  • lshw

    It returns hardware details

  • df -kh

    It returns details of available disk and their sizes

  • free -m

    It returns memory details in MB

  • ps aux | awk '{print $2, $4, $11}' | sort -k2rn | head -n 20

    It returns top 20 memory eating processes

  • facter virtual
  • cat /proc/scsi/scsi
  • ethtool -i eth0
  • dmidecode | grep -i vmware

    It tells whether this host is virtual or physical

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment