Skip to main content

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.

Metadata

Release files for cmdstats 0.3

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for cmdstats 0.3
File Size Uploaded Provenance Actions
cmdstats-0.3.tar.gz 4.2 kB Without provenance Details for cmdstats-0.3.tar.gz

Release files / cmdstats-0.3.tar.gz

Download URL cmdstats-0.3.tar.gz
Size 4.2 kB
Tags Source
SHA-256 checksum
How to use checksums
9d356a9ea85d104bc077c0d57ea9af4c6592a8d42faf00b7bc03847856986e4c
BLAKE2b-256 checksum
How to use checksums
b38e4db85da01f920ffb0bd645974e5fd9c19f97334f59bca7630fa7311711a4
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Security for cmdstats 0.3

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.3 This release

1 release file No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page