arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2012.10206cs.SE
收藏

命令行定制的实证研究

An Empirical Investigation of Command-Line Customization

Michael Schröder, Jürgen Cito

摘要:

交互式命令行,也被称为shell,是一种被广泛的软件专业人员(工程师,系统管理员,数据科学家等)广泛使用的重要机制。因此,Shell自定义可以深入了解它们重复执行的任务,标准环境对这些任务的支持程度,以及可以有效扩展或修改环境的方式。为了描述命令行定制的模式和复杂性,我们通过分析GitHub上超过220万个shell别名定义来挖掘命令行用户的集体知识。Shell别名允许命令行用户通过定义任意复杂的命令替换来自定义其环境。使用归纳编码方法,我们发现了三种类型的别名,每种别名都可以实现许多定制实践:快捷方式(用于昵称命令,命名子命令和书签位置),修改(用于替换命令,覆盖默认值,着色输出和提升权限)和修改(用于转换数据和链接子命令)。我们推测,识别常见的定制实践可以指向命令行程序中的特定可用性问题,并且对这些实践的深入理解可以支持研究人员和工具开发人员设计更好的用户体验。除了我们的分析之外,我们还以精心策划的数据集形式提供了一个广泛的再现性包,以及记录良好的计算笔记本,从而实现进一步的知识发现,并为学习方法提供基础,以改善命令行工作流程。

英文摘要:

The interactive command line, also known as the shell, is a prominent mechanism used extensively by a wide range of software professionals (engineers, system administrators, data scientists, etc.). Shell customizations can therefore provide insight into the tasks they repeatedly perform, how well the standard environment supports those tasks, and ways in which the environment could be productively extended or modified. To characterize the patterns and complexities of command-line customization, we mined the collective knowledge of command-line users by analyzing more than 2.2 million shell alias definitions found on GitHub. Shell aliases allow command-line users to customize their environment by defining arbitrarily complex command substitutions. Using inductive coding methods, we found three types of aliases that each enable a number of customization practices: Shortcuts (for nicknaming commands, abbreviating subcommands, and bookmarking locations), Modifications (for substituting commands, overriding defaults, colorizing output, and elevating privilege), and Scripts (for transforming data and chaining subcommands). We conjecture that identifying common customization practices can point to particular usability issues within command-line programs, and that a deeper understanding of these practices can support researchers and tool developers in designing better user experiences. In addition to our analysis, we provide an extensive reproducibility package in the form of a curated dataset together with well-documented computational notebooks enabling further knowledge discovery and a basis for learning approaches to improve command-line workflows.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑