{"id":19285969,"url":"https://github.com/chenjiandongx/how","last_synced_at":"2025-11-14T17:02:57.468Z","repository":{"id":57437583,"uuid":"199174648","full_name":"chenjiandongx/how","owner":"chenjiandongx","description":"📝 Impressive Linux commands cheat sheet (Python).","archived":false,"fork":false,"pushed_at":"2020-05-10T17:14:10.000Z","size":20,"stargazers_count":130,"open_issues_count":1,"forks_count":9,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-02-05T19:12:52.652Z","etag":null,"topics":["cheatsheet","linux-command"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/chenjiandongx.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2019-07-27T14:25:24.000Z","updated_at":"2024-12-30T02:34:12.000Z","dependencies_parsed_at":"2022-09-15T11:14:11.516Z","dependency_job_id":null,"html_url":"https://github.com/chenjiandongx/how","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chenjiandongx%2Fhow","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chenjiandongx%2Fhow/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chenjiandongx%2Fhow/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chenjiandongx%2Fhow/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/chenjiandongx","download_url":"https://codeload.github.com/chenjiandongx/how/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":240390719,"owners_count":19793782,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["cheatsheet","linux-command"],"created_at":"2024-11-09T21:47:32.427Z","updated_at":"2025-11-14T17:02:57.378Z","avatar_url":"https://github.com/chenjiandongx.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003cp align=\"center\"\u003e\n    \u003cimg src=\"https://user-images.githubusercontent.com/19553554/61995478-bd21e980-b0bb-11e9-8206-5a5958e27b25.png\" alt=\"Linux logo\" width=180 /\u003e\n\u003c/p\u003e\n\n\u003ch1 align=\"center\"\u003e📝 how\u003c/h1\u003e\n\u003cp align=\"center\"\u003e\n    \u003cem\u003eImpressive Linux commands cheat sheet.\u003c/em\u003e\n\u003c/p\u003e\n\n\u003cp align=\"center\"\u003e\n    \u003ca href=\"https://badge.fury.io/py/how\"\u003e\n        \u003cimg src=\"https://badge.fury.io/py/how.svg\" alt=\"PyPI - Python Version\"\u003e\n    \u003c/a\u003e\n    \u003ca href=\"https://pypi.org/project/how/\"\u003e\n        \u003cimg src=\"https://img.shields.io/pypi/pyversions/how.svg?colorB=brightgreen\" alt=\"PyPI - Python Version\"\u003e\n    \u003c/a\u003e\n    \u003ca href=\"https://opensource.org/licenses/MIT\"\u003e\n        \u003cimg src=\"https://img.shields.io/badge/License-MIT-brightgreen.svg\" alt=\"MIT License\"\u003e\n    \u003c/a\u003e\n\u003c/p\u003e\n\n### 💡 IDEA\n\nLinux 是每位开发者必备的技能，如何高效地掌握 Linux 命令就成为一件很重要的事了。[jaywcjlove/linux-command](https://github.com/jaywcjlove/linux-command) 项目收集和整理了 500+ 的 Linux 命令使用文档，不过缺少了一个命令行版本，`how` 决定来填补这个空缺。\n\n* Golang 版本: [chenjiandongx/pls](https://github.com/chenjiandongx/pls)\n\n### 🔰 安装\n\n**pip 安装**\n```bash\n$ pip install how\n```\n\n**源码安装**\n```bash\n$ git clone https://github.com/chenjiandongx/how.git\n$ cd how\n$ pip install -r requirements.txt\n$ python setup.py install\n```\n\n### 📏 使用\n\n```bash\n$ how\nusage: how [-h] [-i] [-v] [COMMAND [COMMAND ...]]\n\nLovely Linux commands cheat sheet.\n\npositional arguments:\n  COMMAND        the puzzling command\n\noptional arguments:\n  -h, --help     show this help message and exit\n  -i, --init     initialize all commands\n  -v, --version  displays the current version of `how`\n```\n\n\u003e Note: 建议第一次使用 `how` 时先初始化所有的命令文档，`how -i`，该命令会将 https://github.com/jaywcjlove/linux-command 的 .md 文档下载到 `~/.command` 本地路径下。不过这个操作不是必须的，因为如果 `how some-command` 在本地路径中查询不到的话，会尝试先向远程地址下载。\n\n### 🔖 示例\n\n初始化所有文档，同时也是更新所有文档的命令\n```shell\n$ how -i\nInitializing commands: 96/562 \n```\n\n查询如何使用 `man` 命令\n```shell\n$ how man\n# man\n\n查看 Linux 中的指令帮助\n\n##  补充说明\n\nman 命令 是 Linux 下的帮助指令，通过 man 指令可以查看\nLinux 中的指令帮助、配置文件帮助和编程帮助等信息。\n\n###  语法\n\nman(选项)(参数)\n\n###  选项\n\n-a：在所有的 man 帮助手册中搜索；\n-f：等价于 whatis 指令，显示给定关键字的简短描述信息；\n-P：指定内容时使用分页程序；\n-M：指定 man 手册搜索的路径。\n\n###  参数\n\n- 数字：指定从哪本 man 手册中搜索帮助；\n- 关键字：指定要搜索帮助的关键字。\n\n###  数字代表内容\n\n1：用户在 shell 环境可操作的命令或执行文件；\n2：系统内核可调用的函数与工具等\n3：一些常用的函数(function) 与函数库(library)，大部分为 C\n的函数库(libc)\n4：设备文件说明，通常在/dev 下的文件\n5：配置文件或某些文件格式\n6：游戏(games)\n7：惯例与协议等，如 Linux 文件系统，网络协议，ASCII code\n等说明\n8：系统管理员可用的管理命令\n9：跟 kernel 有关的文件\n\n###  实例\n\n我们输入 man ls，它会在最左上角显示“LS（1）”，在这里，“LS”表示手\n册名称，而“（1）”表示该手册位于第一节章，同样，我们输 man\nifconfig\n它会在最左上角显示“IFCONFIG（8）”。也可以这样输入命令：“man\n[章节号] 手册名称”。\n\nman 是按照手册的章节号的顺序进行搜索的，比如：\n\nman sleep\n\n只会显示 sleep 命令的手册,如果想查看库函数 sleep，就要输入:\n\nman 3 sleep\n```\n\n### 📅 Changelog\n\n#### V0.1.1 - 2020-05-11\n\n* Updated: 更新命令列表\n\n#### V0.1.0 - 2019-07-28\n\n* Alpha: 第一个正式版发布\n\n### 📃 LICENSE\n\nMIT [©chenjiandongx](https://github.com/chenjiandongx)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fchenjiandongx%2Fhow","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fchenjiandongx%2Fhow","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fchenjiandongx%2Fhow/lists"}