• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 420
  • Last Modified:

Identify common command line commands w/ .bash_history

I'd like to optimize my workflow by creating aliases for common commands. I'm looking for a way to somehow parse my .bash_history file and sort my commands by frequency. Any suggestions?

Thanks,
Zumpoof
0
zumpoof
Asked:
zumpoof
1 Solution
 
ozoCommented:
sort ~/.bash_history | uniq -c | sort -n
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Cloud Class® Course: CompTIA Healthcare IT Tech

This course will help prep you to earn the CompTIA Healthcare IT Technician certification showing that you have the knowledge and skills needed to succeed in installing, managing, and troubleshooting IT systems in medical and clinical settings.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now