Sort Last 1000 Shell Commands By Popularity
DZone's Guide to
Sort Last 1000 Shell Commands By Popularity
Join the DZone community and get the full member experience.
Join For Free
history 1000 | awk '{a[$2]++}END{for(i in a){print a[i] " " i}}' | sort -rn | head
Topics:
Opinions expressed by DZone contributors are their own.
{{ parent.title || parent.header.title}}
{{ parent.tldr }}
{{ parent.linkDescription }}
{{ parent.urlSource.name }}