Skip to content

Instantly share code, notes, and snippets.

@vi7
Created August 31, 2020 20:30
Show Gist options
  • Save vi7/b39f878f966a63f91270144e087a43e0 to your computer and use it in GitHub Desktop.
Save vi7/b39f878f966a63f91270144e087a43e0 to your computer and use it in GitHub Desktop.
Show Asus router NVRAM top usage
#/usr/bin/env sh
# Try this one-liner to print the top 20 nvram variables by size (courtesy of ryzhov-al :) )
nvram show | awk '{print length(), $0 | "sort -n -r"}' | cut -d"=" -f 1 | head -n 20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment