显示最常用的shell命令。

shellstats的Python项目详细描述


shellstats读取您的shell历史并显示最常用的 命令。典型输出如下:

   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%

安装

只需简单地安装即可:

$ pip install shellstats

此外,如果要查看上述输出的饼图,则需要 要安装matplotlib(在 debian/ubuntu/fedora)。

用法

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.

欢迎加入QQ群-->: 979659372 Python中文网_新手群

推荐PyPI第三方库


热门话题
当通过libs中的JAR访问时,java安卓视图看起来不同   java如何使用Android Studio部署JavaFX项目?   java NoClassDefFoundErrorom/google/api/client/googleapis/batch/json/JsonBatchCallback   eclipse为什么在Java中调用setXmlStandalone()方法时出现异常:abstructmethoderror?   未导入java twitter4J TwitterStream   如何在java selenium中单击style属性的基础   java如何打印字符串中第一个字符的二进制表示   基于密钥的安卓-Java处理Json数组   java如何使手风琴正确显示动态信息   java是在Camel中测试对象的正确方法   每当试图显示通过USB从Arduino传入的数据时,java Android应用程序就会崩溃   编译器错误如何在命令行中设置java buildPath?   Java for loop/jvm坏了?!?循环内的递增运算符在1之后不递增   无法转换类型为“java”的属性值。lang.String“到所需类型”java。util。属性“开始时间”的“日期”   爪哇和C++中迭代器的区别是什么?   java查询生成器不能/不应该   java为什么Maven(在Netbeans下)没有为目标JDK1.6编译?