Solved

Identify common command line commands w/ .bash_history

Posted on 2012-04-07
1
399 Views
Last Modified: 2012-08-13
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
Comment
Question by:zumpoof
1 Comment
 
LVL 84

Accepted Solution

by:
ozo earned 500 total points
Comment Utility
sort ~/.bash_history | uniq -c | sort -n
0

Featured Post

Highfive Gives IT Their Time Back

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

Introduction We as admins face situation where we need to redirect websites to another. This may be required as a part of an upgrade keeping the old URL but website should be served from new URL. This document would brief you on different ways ca…
SSH (Secure Shell) - Tips and Tricks As you all know SSH(Secure Shell) is a network protocol, which we use to access/transfer files securely between two networked devices. SSH was actually designed as a replacement for insecure protocols that sen…
Learn how to find files with the shell using the find and locate commands. Use locate to find a needle in a haystack.: With locate, check if the file still exists.: Use find to get the actual location of the file.:
Connecting to an Amazon Linux EC2 Instance from Windows Using PuTTY.

728 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

10 Experts available now in Live!

Get 1:1 Help Now