https://github.com/rahiel/shellstats
Show shell usage statistics.
https://github.com/rahiel/shellstats
cli
Last synced: 6 months ago
JSON representation
Show shell usage statistics.
- Host: GitHub
- URL: https://github.com/rahiel/shellstats
- Owner: rahiel
- License: mit
- Created: 2014-11-17T19:30:26.000Z (almost 11 years ago)
- Default Branch: master
- Last Pushed: 2014-11-29T16:55:25.000Z (almost 11 years ago)
- Last Synced: 2025-03-20T21:34:03.674Z (7 months ago)
- Topics: cli
- Language: Python
- Homepage: https://pypi.org/project/shellstats/
- Size: 162 KB
- Stars: 2
- Watchers: 2
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
shellstats
==========Shellstats reads your shell history and shows you the most used
commands. Typical output looks like:Command Count Percentage
1 ls 326 17.0%
2 cd 254 13.3%
3 less 172 8.99%
4 sudo 162 8.47%
5 emacs 159 8.31%
6 screen 146 7.63%
7 echo 103 5.38%
8 top 100 5.23%
9 du 85 4.44%
10 grep 70 3.66%## Installation
Install it with a simple:$ pip install shellstats
In addition if you want to see a pie chart of the above output, you need to have
matplotlib installed (package 'python-matplotlib' in Debian/Ubuntu/Fedora).## Usage
```
Usage: shellstats [OPTIONS]Print the most frequently used shell commands.
Options:
--n INTEGER How many commands to show.
--plot Plot command usage in pie chart.
--command TEXT Most frequent subcommands for command, e.g. sudo, git.
--history-file PATH Read shell history from history-file.
--shell TEXT Specify shell history format: bash, fish or zsh.
--help Show this message and exit.
```