linux-command/README.md

235 lines
14 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="http://www.oschina.net/">
<img src="./template/img/banner.svg?sanitize=true">
</a>
</p>
Linux Command
---
[![](https://jaywcjlove.github.io/sb/ico/linux.svg)](https://jaywcjlove.github.io/linux-command/) [![](https://jaywcjlove.github.io/sb/ico/weibo.svg)](http://weibo.com/pc175) [![](https://jaywcjlove.github.io/sb/ico/npm.svg)](https://www.npmjs.com/package/linux-command)
550 多个 Linux 命令,内容包含 Linux 命令手册、详解、学习,值得收藏的 Linux 命令速查手册。请原谅我写了个爬虫,爬了他们家的数据 [linuxde.net](http://man.linuxde.net) 同时进行了编辑增加了一些数据。对他们的辛勤劳动表示敬意个人希望能本地离线搜索不喜欢广告希望得到干净漂亮的预览界面业余和工作时间需要使用大量的命令所以干了一件看似比较愚蠢的事情在回头有空的时候估计能做一个App或者是命令行帮助工具但目前还没有计划...
[Web](#web-版本) | [Dash](#dash-版本) | [Alfred](#alfred-版本) | [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-插件)
## 开发使用
可以通过 `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
```
#### 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)
[![Chrome Web Store 下载](./assets/chrome-extensions.gif)](https://github.com/jaywcjlove/oscnews)
#### Web 版本
[Github Web](http://jaywcjlove.github.io/linux-command/) | [OSChina Web](http://jaywcjlove.gitee.io/linux-command/) | [Web 1](http://linux-command.composer-proxy.org/)
扫描二维码移动端预览搜索,也可通过二维码下面链接地址打开使用。
[![Linux 命令大全](./assets/qr.png)](https://jaywcjlove.github.io/linux-command/)
预览搜索:**https://git.io/linux**
[![Linux 命令大全](./assets/Linux.gif)](https://jaywcjlove.github.io/linux-command/)
#### Alfred 版本
[Alfred 版本下载](https://github.com/jaywcjlove/linux-command/releases) 下图是界面效果。
[![Linux 命令大全](./assets/alfred.png)](https://github.com/jaywcjlove/linux-command/releases)
#### Dash 版本
由 [**@SHANG殇**](https://github.com/xinshangshangxin) 提供的 `Dash` 版本 [#91](https://github.com/jaywcjlove/linux-command/pull/91),可配合 `alfred` 玩耍,下载 [linux-command.docset.zip](https://github.com/jaywcjlove/linux-command/releases) 文件解压,点击安装即可。
[![](https://user-images.githubusercontent.com/8779091/57193499-5b475d00-6f6e-11e9-879d-e7e8fdc40ced.gif)](https://github.com/jaywcjlove/linux-command/releases)
## 目录
- [Linux命令分类](#linux命令分类)
- [文件管理](#文件管理) File Management
- [文件传输](#文件传输) File Transfer
- [文本处理](#文本处理) File Editor
- [备份压缩](#备份压缩) File Compression
- [系统管理](#系统管理) System Management
- [系统设置](#系统设置) System Settings
- [网络通讯](#网络通讯) Network Communication
- [磁盘管理](#磁盘管理) Disk Management
- [磁盘维护](#磁盘维护) Disk Maintenance
- [设备管理](#设备管理) Device Commands
- [电子邮件与新闻组](#电子邮件与新闻组)
- [其他命令](#其他命令) Misc Commands
- [Node调用](#node调用)
- [Linux学习资源整理](#linux学习资源整理)
- [社区网站](#社区网站)
- [知识相关](#知识相关)
- [软件工具](#软件工具)
- [中国开源镜像站点](#中国开源镜像站点)
- [游戏玩家发行版](#游戏玩家发行版)
## 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
## 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)
- [程序员喜欢的9款最佳的Linux文件比较工具](http://os.51cto.com/art/201607/513796.htm)
- [提高 Linux 开发效率的 5 个工具](http://www.codeceo.com/article/5-linux-productivity-tools.html)
- [你要了解的11款面向Linux系统的一流备份实用工具](http://os.51cto.com/art/201603/508027.htm)
- [16个很有用的在线工具](http://www.simlinux.com/archives/264.html)
- 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://mirrors.xmu.edu.cn/
- 上海交通大学http://ftp.sjtu.edu.cn/
- 清华大学http://mirrors.tuna.tsinghua.edu.cn/
- http://mirrors6.tuna.tsinghua.edu.cn/
- http://mirrors4.tuna.tsinghua.edu.cn/
- 中国科学技术大学http://mirrors.ustc.edu.cn/
- http://ipv4.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)