• 6TM
  • My links
  • Tags
  • pics
  • RSS
  • Login
Filter untagged links
2 results tagged Snippet

Get main system information (Model/CPU/RAM Max) from dmidecodehttps://sh.6tm.es/shaare/GNVG0w

  • Snippet
  • Devops
  • Infra
  • TIL
  • Snippet
  • Devops
  • Infra
  • TIL

sudo dmidecode -t system -t processor -t memory | grep -Ev 'None|: [0-9]*$' | grep -E "Maximum Capacity|Serial Number|Product Name|Version"

Permalink
January 22, 2026 at 3:19:43 PM GMT+1
QRCode
archive.org

Get Linux Distribution from commandlinehttps://sh.6tm.es/shaare/lYQT5g

  • Snippet
  • GNU/Linux
  • Distribution
  • Snippet
  • GNU/Linux
  • Distribution

[[ $(uname -s) = Linux ]] && awk -F'=' '/^ID/ {last = $2} END {if (last != "") print last}' /etc/*release || echo "It's not a Linux Distribution"

Get only last result from awk because for Archlinux, release file has two ID fields (ID and ID_LIKE).

Permalink
December 22, 2025 at 9:34:12 AM GMT+1
QRCode
archive.org
Links per page
  • 20
  • 50
  • 100
Shaarli 96 shaares · Shaarli · The personal, minimalist, super fast, database-free, bookmarking service by the Shaarli community · Documentation · Theme : Stack · Font : DINish
Fold Fold all Expand Expand all Are you sure you want to delete this link? Are you sure you want to delete this tag? The personal, minimalist, super-fast, database free, bookmarking service by the Shaarli community