linux-command/README.md

349 lines
20 KiB
Markdown
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

<p align="center">
<a href="https://jaywcjlove.github.io/linux-command">
<img src="./template/img/banner.svg?sanitize=true">
</a>
<h1>Linux Command</h1>
</p>
[![CI](https://github.com/jaywcjlove/linux-command/actions/workflows/ci.yml/badge.svg)](https://github.com/jaywcjlove/linux-command/actions/workflows/ci.yml)
[![Web](https://jaywcjlove.github.io/sb/ico/linux.svg)](https://jaywcjlove.github.io/linux-command/)
[![weibo](https://jaywcjlove.github.io/sb/ico/weibo.svg)](http://weibo.com/pc175)
[![Get this with npm](https://jaywcjlove.github.io/sb/ico/npm.svg)](https://www.npmjs.com/package/linux-command)
[![NPM Download](https://img.shields.io/npm/dm/linux-command.svg?style=flat)](https://www.npmjs.com/package/linux-command)
[![jsdelivr cdn](https://data.jsdelivr.com/v1/package/npm/linux-command/badge)](https://www.jsdelivr.com/package/npm/linux-command)
[![Docker Image Size (latest by date)](https://img.shields.io/docker/image-size/wcjiang/linux-command?logo=docker)](https://hub.docker.com/r/wcjiang/linux-command)
当前仓库搜集了 570 多个 Linux 命令,是一个非盈利性的仓库,生成了一个 web 网站方便使用,目前网站没有任何广告,内容包含 Linux 命令手册、详解、学习,内容来自网络和网友的补充,非常值得收藏的 Linux 命令速查手册。版权归属原作者,对任何法律问题及风险不承担任何责任,没有任何商业目的,如果认为侵犯了您的版权,请来信告知。我不能完全保证内容的正确性。通过使用本站内容带来的风险与我无关。当使用本站时,代表您已接受了本站的使用条款和隐私条款。
[Web](#web-版本) | [微信小程序](#微信小程序版本) | [Dash](#dash-版本) | [Raycast](#raycast-版本) | [Alfred](#alfred-版本) | [KDE/Krunner](https://github.com/roachsinai/krunner-linuxcommands) | [Android](https://github.com/Ernest-su/LinuxCmd.git) | [Mac/Win/Linux](https://github.com/haloislet/linux-command) | [Chrome Plugin](#chrome-插件) | [命令行工具](#命令行工具) | [Docker](#docker)
## Web 版本
[Github Web](http://jaywcjlove.github.io/linux-command/) | [Gitee Web](http://jaywcjlove.gitee.io/linux-command/) | [Githack](https://raw.githack.com/jaywcjlove/linux-command/gh-pages/index.html) | [Statically](https://cdn.statically.io/gh/jaywcjlove/linux-command/gh-pages/index.html)
扫描二维码移动端预览搜索,也可通过二维码下面链接地址打开使用,下面网站是通过 Github Action 自动更新。
⚠️ [Gitee Web](http://jaywcjlove.gitee.io/linux-command/) 存在 `违禁违规` 内容问题 [#283](https://github.com/jaywcjlove/linux-command/issues/283)。
[![Linux 命令大全](https://user-images.githubusercontent.com/1680273/123261718-ab585380-d529-11eb-86e1-e97cdcd78150.png)](https://jaywcjlove.github.io/linux-command/)
预览搜索:**https://git.io/linux**
[![Linux 命令大全](https://user-images.githubusercontent.com/1680273/123261829-ce830300-d529-11eb-8cea-a39059b972dd.gif)](https://jaywcjlove.github.io/linux-command/)
你可以随意部署 web 版,这非常简单,只需要克隆 [`gh-pages`](https://github.com/jaywcjlove/linux-command/tree/gh-pages) 分支代码到你的静态服务就可以了。你也可以将 [`command`](https://github.com/jaywcjlove/linux-command/tree/master/command) 目录中的 Markdown 文件拿去自己生成 HTML。还可以使用下方 docker 方法部署 web 版。
⚠️ 你们拿过去部署的静态网站,还是希望挂个 GitHub 地址,这样大家共同维护命令文档,让文档更加完善,更加丰富,当然你删除本站所有信息相关信息,其实我也不太在意,默认允许你们随意搞,我不负任何负责。如果您也部署了一份,可以将网址放到下面 :)。
**推荐使用的镜像 web 版本**
[**`qq.wdev.cn`**](https://qq.wdev.cn)
[**`linux.devonline.net`**](http://linux.devonline.net/)[**`man.zch.ooo`**](https://man.zch.ooo/)[**`linux.mmoke.com`**](https://linux.mmoke.com)[**`bqrdh.com`**](https://tools.bqrdh.com/linux-command/)
**其它 web 版本**
[`linux.ftqq.com`](https://linux.ftqq.com/)[`linux.gaomeluo.com`](https://linux.gaomeluo.com)[`atoolbox.net`](http://www.atoolbox.net/Tool.php?Id=826)[`xiaoshanseo.com`](https://tools.xiaoshanseo.com/Tools/linux-command/)[`262235.xyz`](https://262235.xyz/linux-command/)[`cmsblogs.cn`](https://linux.cmsblogs.cn/)[`loquy.cn`](https://www.loquy.cn/linux-command/)[`buyao.vip`](https://demo.buyao.vip/linux/)[`hezhiqiang.gitbook.io`](https://hezhiqiang.gitbook.io/linux/), [`luojianjun.cn`](https://luojianjun.cn/linux-command/)
## 微信小程序版本
微信小程序版本,由 [**@Matz Yang**](https://github.com/MatzYang) 提供 [#260](https://github.com/jaywcjlove/linux-command/issues/260)。
<img width="180" src="https://user-images.githubusercontent.com/1445225/123251478-d50b7d80-d51d-11eb-80e4-01e18212fc4d.png" />
## Chrome 插件
可在[源码仓库](https://github.com/jaywcjlove/oscnews)预览效果,[Github下载 crx 文件安装](https://github.com/jaywcjlove/oscnews/releases) 或者[开源中国下载 crx 文件安装](https://gitee.com/jaywcjlove/oscnews/releases) 也可通过 Chrome Web Store 下载:
[![Chrome Web Store 下载](http://jaywcjlove.github.io/sb/download/chrome-web-store.svg)](https://chrome.google.com/webstore/detail/oscnews/iheapfheanfjcemgneblljhaebonakbg)
<details>
<summary>Chrome 插件截图</summary>
<a href="https://github.com/jaywcjlove/oscnew"><img width="556" alt="Chrome 插件截图" src="./assets/chrome-extensions.gif" /></a>
</details>
## Raycast 版本
[Raycast 版本安装](https://www.raycast.com/jaywcjlove/linux-command) ([**#338**](https://github.com/jaywcjlove/linux-command/issues/338))下图是界面效果:
<details>
<summary>Raycast 版本截图</summary>
<img width="556" alt="Raycast 版本截图" src="https://user-images.githubusercontent.com/1680273/156889676-a4c5d6c5-3d0d-4ceb-a573-83f328c94756.png" />
<img width="556" alt="Raycast 版本截图" src="https://user-images.githubusercontent.com/1680273/156889683-e0d54e59-994a-4ef6-85e8-2ae3e7163a87.png" />
<img width="556" alt="Raycast 版本截图" src="https://user-images.githubusercontent.com/1680273/156889728-c45290b0-100a-4a4c-a7cd-42bf3fe2b2f4.png" />
<img width="556" alt="Raycast 版本截图" src="https://user-images.githubusercontent.com/1680273/156889699-42a8fb60-e239-49ce-b5db-a4b0875faa5f.png" />
</details>
## Alfred 版本
[Alfred 版本下载](https://github.com/jaywcjlove/linux-command/releases) 下图是界面效果。
<details>
<summary>Alfred 版本截图</summary>
<a href="https://github.com/jaywcjlove/linux-command/releases"><img width="556" alt="Alfred 版本截图" src="./assets/alfred.png" /></a>
</details>
## Dash 版本
由 [**@SHANG殇**](https://github.com/xinshangshangxin) 提供的 `Dash` 版本 [#91](https://github.com/jaywcjlove/linux-command/pull/91),可配合 `alfred` 玩耍,下载 [linux-command.docset.tgz](https://github.com/jaywcjlove/linux-command/releases) 文件解压,点击安装即可。
<details>
<summary>Dash 版本截图</summary>
<a href="https://github.com/jaywcjlove/linux-command/releases"><img width="556" alt="Dash 版本截图" src="https://user-images.githubusercontent.com/8779091/57193499-5b475d00-6f6e-11e9-879d-e7e8fdc40ced.gif" /></a>
</details>
## Android 版本
[Android 版本下载](https://github.com/Ernest-su/LinuxCmd/releases) 下图是界面效果。
<details>
<summary>Android 版本截图</summary>
<img width="556" alt="Android 版本截图" src="https://github.com/Ernest-su/LinuxCmd/raw/master/screenshot/screenshot1.png" />
<img width="556" alt="Android 版本截图" src="https://github.com/Ernest-su/LinuxCmd/raw/master/screenshot/screenshot2.png" />
</details>
## 命令行工具
- [`@chenjiandongx/how`](https://github.com/chenjiandongx/how) Python 版 [#129](https://github.com/jaywcjlove/linux-command/issues/129),由 [**@陈键冬**](https://github.com/chenjiandongx) 提供。
- [`@chenjiandongx/pls`](https://github.com/chenjiandongx/pls) Golang 版 [#129](https://github.com/jaywcjlove/linux-command/issues/129),由 [**@陈键冬**](https://github.com/chenjiandongx) 提供。
## Docker
[![Docker Image Version (latest by date)](https://img.shields.io/docker/v/wcjiang/linux-command?logo=docker)](https://hub.docker.com/r/wcjiang/linux-command) [![Docker Image Size (latest by date)](https://img.shields.io/docker/image-size/wcjiang/linux-command?logo=docker)](https://hub.docker.com/r/wcjiang/linux-command) [![Docker Pulls](https://img.shields.io/docker/pulls/wcjiang/linux-command?logo=docker)](https://hub.docker.com/r/wcjiang/linux-command)
轻松通过 docker 部署 linux-command 网站。
```bash
docker pull wcjiang/linux-command
# Or
docker pull ghcr.io/jaywcjlove/linux-command:latest
```
```bash
docker run --name linux-command --rm -d -p 9665:3000 wcjiang/linux-command:latest
# Or
docker run --name linux-command -itd -p 9665:3000 wcjiang/linux-command:latest
# Or
docker run --name linux-command -itd -p 9665:3000 ghcr.io/jaywcjlove/linux-command:latest
```
在浏览器中访问以下 URL
```bash
http://localhost:9665/
```
## 目录
- [目录](#目录)
- [Linux命令分类](#linux命令分类)
- [文件传输](#文件传输)
- [备份压缩](#备份压缩)
- [文件管理](#文件管理)
- [磁盘管理](#磁盘管理)
- [磁盘维护](#磁盘维护)
- [系统设置](#系统设置)
- [系统管理](#系统管理)
- [文本处理](#文本处理)
- [网络通讯](#网络通讯)
- [设备管理](#设备管理)
- [电子邮件与新闻组](#电子邮件与新闻组)
- [其他命令](#其他命令)
- [开发使用](#开发使用)
- [Linux学习资源整理](#linux学习资源整理)
- [社区网站](#社区网站)
- [知识相关](#知识相关)
- [软件工具](#软件工具)
- [中国开源镜像站点](#中国开源镜像站点)
- [游戏玩家发行版](#游戏玩家发行版)
- [Team](#team)
## Linux命令分类
*这里存放Linux 命令大全并不全,你可以通过[linux-command](https://jaywcjlove.github.io/linux-command/)来搜索,它是把 [command](./assets/command) 目录里面搜集的命令生成了静态HTML并提供预览以及索引搜索。*
### 文件传输
bye、ftp、ftpcount、ftpshut、ftpwho、ncftp、tftp、uucico、uucp、uupick、uuto、scp
### 备份压缩
ar、bunzip2、bzip2、bzip2recover、compress、cpio、dump、gunzip、gzexe、gzip、lha、restore、tar、unarj、unzip、zip、zipinfo
### 文件管理
diff、diffstat、file、find、git、gitview、ln、locate、lsattr、mattrib、mc、mcopy、mdel、mdir、mktemp、mmove、mread、mren、mshowfat、mtools、mtoolstest、mv、od、paste、patch、rcp、rhmask、rm、slocate、split、tee、tmpwatch、touch、umask、whereis、which、cat、chattr、chgrp、chmod、chown、cksum、cmp、cp、cut、indent
### 磁盘管理
cd、df、dirs、du、edquota、eject、lndir、ls、mcd、mdeltree、mdu、mkdir、mlabel、mmd、mmount、mrd、mzip、pwd、quota、quotacheck、quotaoff、quotaon、repquota、rmdir、rmt、stat、tree、umount
### 磁盘维护
badblocks、cfdisk、dd、e2fsck、ext2ed、fdisk、fsck.ext2、fsck、fsck.minix、fsconf、hdparm、losetup、mbadblocks、mformat、mkbootdisk、mkdosfs、mke2fs、mkfs.ext2、mkfs、mkfs.minix、mkfs.msdos、mkinitrd、mkisofs、mkswap、mpartition、sfdisk、swapoff、swapon、symlinks、sync
### 系统设置
alias、apmd、aumix、bind、chkconfig、chroot、clock、crontab、declare、depmod、dircolors、dmesg、enable、eval、export、fbset、grpconv、grpunconv、hwclock、insmod、kbdconfig、lilo、liloconfig、lsmod、minfo、mkkickstart、modinfo、modprobe、mouseconfig、ntsysv、passwd、pwconv、pwunconv、rdate、resize、rmmod、rpm、set、setconsole、setenv、setup、sndconfig、SVGAText Mode、timeconfig、ulimit、unalias、unset
### 系统管理
adduser、chfn、chsh、date、exit、finger、free、fwhois、gitps、groupdel、groupmod、halt、id、kill、last、lastb、login、logname、logout、logrotate、newgrp、nice、procinfo、ps、pstree、reboot、renice、rlogin、rsh、rwho、screen、shutdown、sliplogin、su、sudo、suspend、swatch、tload、top、uname、useradd、userconf、userdel、usermod、vlock、w、who、whoami、whois
### 文本处理
awk、col、colrm、comm、csplit、ed、egrep、ex、fgrep、fmt、fold、grep、ispell、jed、joe、join、look、mtype、pico、rgrep、sed、sort、spell、tr、uniq、vi、wc
### 网络通讯
dip、getty、mingetty、ppp-off、smbd(samba daemon)、telnet、uulog、uustat、uux、cu、dnsconf、efax、httpd、ip、ifconfig、mesg、minicom、nc、netconf、netconfig、netstat、ping、pppstats、samba、setserial、shapecfg(shaper configuration)、smbd(samba daemon)、statserial(status ofserial port)、talk、tcpdump、testparm(test parameter)、traceroute、tty(teletypewriter)、uuname、wall(write all)、write、ytalk、arpwatch、apachectl、smbclient(samba client)、pppsetup
### 设备管理
dumpkeys、loadkeys、MAKEDEV、rdev、setleds
### 电子邮件与新闻组
archive、ctlinnd、elm、getlist、inncheck、mail、mailconf、mailq、messages、metamail、mutt、nntpget、pine、slrn、X WINDOWS SYSTEM、reconfig、startx(start X Window)、Xconfigurator、XF86Setup、xlsatoms、xlsclients、xlsfonts
### 其他命令
yes
## 开发使用
可以通过 `npm` 安装 [`linux-command`](https://www.npmjs.com/package/linux-command) 包,包含所有命令的 markdown 文本,和一个[索引文件](dist/data.json)。
```bash
npm install linux-command
```
```js
var comm = require("linux-command");
console.log("---->", comm.ls);
var alias = require("linux-command/command/alias.md");
console.log("---->", alias); // markdown string
```
你也可以通过 CDN 来访问索引数据,和对应的命令详细内容,我将更新内容定期发布版本,提供大家使用,[UNPKG](https://unpkg.com/linux-command/) 带上版本号,将锁定版本访问,删除版本号请求数据,将会自动重定向最新版本。
```shell
# 命令索引 JSON 数据
https://unpkg.com/linux-command/dist/data.json
# 对应命令详情Markdown数据
https://unpkg.com/linux-command/command/<命令名称>.md
```
你也可以通过 Github 的 Raw 来,获取最新的内容
```shell
# 命令索引 JSON 数据
https://raw.githubusercontent.com/jaywcjlove/linux-command/master/dist/data.json
# 对应命令详情Markdown数据
https://raw.githubusercontent.com/jaywcjlove/linux-command/master/command/<命令名称>.md
```
## Linux学习资源整理
### 社区网站
- [Linux中国](https://linux.cn/) - 各种资讯、文章、技术
- [实验楼](https://www.shiyanlou.com/) - 免费提供了Linux在线环境不用在自己机子上装系统也可以学习Linux超方便实用。
- [鸟哥的linux私房菜](http://linux.vbird.org/) - 非常适合Linux入门初学者看的教程。
- [Linux公社](http://www.linuxidc.com/) - Linux相关的新闻、教程、主题、壁纸都有。
- [Linux Today](http://www.linuxde.net) - Linux新闻资讯发布Linux职业技术学习
### 知识相关
- [Linux思维导图整理](http://www.jianshu.com/p/59f759207862)
- [Linux初学者进阶学习资源整理](http://www.jianshu.com/p/fe2a790b41eb)
- [Linux 基础入门(新版)](https://www.shiyanlou.com/courses/1)
- [【译】Linux概念架构的理解](http://www.jianshu.com/p/c5ae8f061cfe) [En](http://oss.org.cn/ossdocs/linux/kernel/a1/index.html)
- [Linux 守护进程的启动方法](http://www.ruanyifeng.com/blog/2016/02/linux-daemon.html)
- [Linux编程之内存映射](https://www.shiyanlou.com/questions/2992)
- [Linux知识点小结](https://blog.huachao.me/2016/1/Linux%E7%9F%A5%E8%AF%86%E7%82%B9%E5%B0%8F%E7%BB%93/)
- [10大白帽黑客专用的 Linux 操作系统](https://linux.cn/article-6971-1.html)
### 软件工具
- [超赞的Linux软件](https://www.gitbook.com/book/alim0x/awesome-linux-software-zh_cn/details) Github仓库[Zh](https://github.com/alim0x/Awesome-Linux-Software-zh_CN) [En](https://github.com/VoLuong/Awesome-Linux-Software)
- Adobe软件的最佳替代品 [原文在这里](https://linux.cn/article-8928-1.html)
- [Evince (Adobe Acrobat Reader)](https://wiki.gnome.org/Apps/Evince) 一个“支持多种文档格式的文档查看器”可以查看PDF还支持各种漫画书格式
- [Pixlr (Adobe Photoshop)](https://pixlr.com/) 一个强大的图像编辑工具
- [Inkscape (Adobe Illustrator)](https://inkscape.org/zh/) 一个专业的矢量图形编辑器
- [Pinegrow Web Editor (Adobe Dreamweaver)](https://pinegrow.com/) 一个可视化编辑制作 HTML 网站
- [Scribus (Adobe InDesign)](https://www.scribus.net/) 一个开源电子杂志制作软件
- [Webflow (Adobe Muse)](https://webflow.com/) 一款可以帮助用户不用编码就可以快速创建网站的谷歌浏览器插件。
- [Tupi (Adobe Animate)](http://www.maefloresta.com/portal/) 一款可以创建HTML5动画的工具。
- [Black Magic Fusion (Adobe After Effects)](https://www.blackmagicdesign.com) 一款先进的合成软件广泛应用于视觉特效、广电影视设计以及3D动画设计等领域。
### 中国开源镜像站点
- 阿里云开源镜像站http://mirrors.aliyun.com/
- 网易开源镜像站http://mirrors.163.com/
- 搜狐开源镜像站http://mirrors.sohu.com/
- 北京交通大学http://mirror.bjtu.edu.cn/ \<教育网荐\>
- 兰州大学http://mirror.lzu.edu.cn/ \<西北高校FTP搜索引擎\>
- 上海交通大学http://ftp.sjtu.edu.cn/
- 清华大学http://mirrors.tuna.tsinghua.edu.cn/
- http://mirrors4.tuna.tsinghua.edu.cn/
- 中国科学技术大学http://mirrors.ustc.edu.cn/
- http://ipv6.ustc.edu.cn/ \<IPv6 only\>
- 东北大学http://mirror.neu.edu.cn/
- 浙江大学http://mirrors.zju.edu.cn/
- 东软信息学院http://mirrors.neusoft.edu.cn/
### 游戏玩家发行版
*面向游戏玩家的八款最佳 Linux 发行版,本文由开源中国整理,[原文在这里](https://my.oschina.net/editorial-story/blog/888795)*
- [SteamOS](http://store.steampowered.com/livingroom/SteamOS/) [官方文档](http://store.steampowered.com/steamos/buildyourown) [镜像下载](http://repo.steampowered.com/download/)
- [Ubuntu GamePack](https://ualinux.com/en/ubuntu-gamepack) [下载地址](https://ualinux.com/en/ubuntu-gamepack)
- [Fedora Games Spin](https://www.oschina.net/p/fedora_linux) [下载地址](https://labs.fedoraproject.org/en/games/)
- [SparkyLinux GameOver Edition](https://www.oschina.net/p/sparkylinux) [下载地址](https://sparkylinux.org/download/#special)
- [Lakka](http://www.lakka.tv/) [下载地址](http://www.lakka.tv/disclaimer/)
- [Game Drift Linux](http://gamedrift.org/) [下载地址](http://gamedrift.org/Download.html)
- [Solus](https://solus-project.com) [下载地址](https://solus-project.com/download/)
- [Manjaro Gaming Edition (mGAMe)](https://sourceforge.net/projects/mgame/) [下载地址](https://sourceforge.net/projects/mgame/)
## Team
[![小弟调调™](https://github.com/jaywcjlove.png?size=100)](https://github.com/jaywcjlove) | [![ZhuangZhu-74](https://github.com/ZhuangZhu-74.png?size=100)](https://github.com/ZhuangZhu-74) | [![Huck Huang](https://github.com/huckhuang.png?size=100)](https://github.com/huckhuang)
---|---|---
[小弟调调™](http://wangchujiang.com) | [ZhuangZhu-74](https://github.com/ZhuangZhu-74) | [Huck Huang](https://github.com/huckhuang)
## Contributors
As always, thanks to our amazing contributors!
<a href="https://github.com/jaywcjlove/linux-command/graphs/contributors">
<img src="https://jaywcjlove.github.io/linux-command/CONTRIBUTORS.svg" />
</a>
Made with [github-action-contributors](https://github.com/jaywcjlove/github-action-contributors).
## License
Licensed under the MIT License.