Daily Weekly Monthly

Daily Shaarli

All links of one day in a single page.

December 22, 2025

Get Linux Distribution from commandline

[[ $(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).