Skip to content

Instantly share code, notes, and snippets.

@demmm
Created May 20, 2026 18:33
Show Gist options
  • Select an option

  • Save demmm/8a256b36bb610d2c7002a3f7b471faed to your computer and use it in GitHub Desktop.

Select an option

Save demmm/8a256b36bb610d2c7002a3f7b471faed to your computer and use it in GitHub Desktop.
read -r up _ < /proc/uptime; up=${up%.*}; echo \"up $((up/86400)) days $(((up%86400)/3600)):$(((up%3600)/60)):$((up%60))\"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment