Skip to main content

File Name: cmdstats.py Author: JackeyGao mail: gaojunqi@outlook.com Created Time: 2015年07月12日 星期日 20时45分02秒

Project description

cmdstats

查看你终端命令使用频率列表, 原理是通过宿主目录下的 .*history 分析后得到历史命令使用频率状态, 并且进行排序输出.

https://github.com/jackeyGao/cmdstats/raw/master/screenCapture.jpg

Install

pip install git+https://github.com/jackeyGao/cmdstats.git

Usage

$ cmdstats -l 25
1   1919  27.01675%  vim
2   1524  21.45572%  python
3   797   11.22061%  ls
4   646   9.09475%   git
5   356   5.01197%   cd
6   215   3.02689%   ll
7   186   2.61861%   pip
8   82    1.15444%   rm
9   71    0.99958%   workon
10  66    0.92918%   mysql
11  61    0.85879%   clear
12  59    0.83063%   curl
13  56    0.7884%    ps
14  54    0.76024%   cat
15  43    0.60538%   tail
16  37    0.52091%   grep
17  36    0.50683%   echo
18  36    0.50683%   mv
19  35    0.49275%   sh
20  32    0.45051%   mkdir
21  29    0.40828%   nohup
22  29    0.40828%   cp
23  28    0.3942%    pwd
24  27    0.38012%   su
25  26    0.36604%   mkvirtualenv

License

The MIT License (MIT)

Copyright (c) 2015 JackeyGao

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the “Software”), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

cmdstats-0.2.tar.gz (4.2 kB view details)

Uploaded Source

File details

Details for the file cmdstats-0.2.tar.gz.

File metadata

  • Download URL: cmdstats-0.2.tar.gz
  • Upload date:
  • Size: 4.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for cmdstats-0.2.tar.gz
Algorithm Hash digest
SHA256 0db799804eb55d4daa5c4870ff2c66cc85a0fae108481e20ee6e26e1fe2023d5
MD5 047aeac562daa7a61c62e0fbece41a20
BLAKE2b-256 d2f46372e2e8468e0ddfd069270175f9f458a1cd3213703f8a64ec2a3940bd50

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page