diff --git a/sources/tech/20171207 Cheat – A Collection Of Practical Linux Command Examples.md b/translated/tech/20171207 Cheat – A Collection Of Practical Linux Command Examples.md similarity index 61% rename from sources/tech/20171207 Cheat – A Collection Of Practical Linux Command Examples.md rename to translated/tech/20171207 Cheat – A Collection Of Practical Linux Command Examples.md index 615de120d1..6d7d3d0edd 100644 --- a/sources/tech/20171207 Cheat – A Collection Of Practical Linux Command Examples.md +++ b/translated/tech/20171207 Cheat – A Collection Of Practical Linux Command Examples.md @@ -1,48 +1,37 @@ -translating---geekpi - -Cheat – A Collection Of Practical Linux Command Examples +Cheat - 一个实用 Linux 命令示例集合 ====== -Many of us very often checks **[Man Pages][1]** to know about command switches -(options), it shows you the details about command syntax, description, -details, and available switches but it doesn 't has any practical examples. -Hence, we are face some trouble to form a exact command format which we need. +我们中的许多人经常查看 **[ man 页面][1]** 来了解命令开关(选项),它会显示有关命令语法、说明、细节和可用的选项,但它没有任何实际的例子。因此,在组合成一个完整的我们需要的命令时会遇到一些麻烦。 -Are you really facing the trouble on this and want a better solution? i would -advise you to check about cheat utility. +你确实遇到这个麻烦而想要一个更好的解决方案吗?我会建议你试一下 cheat。 -#### What Is Cheat +#### Cheat 是什么 -[Cheat][2] allows you to create and view interactive cheatsheets on the -command-line. It was designed to help remind *nix system administrators of -options for commands that they use frequently, but not frequently enough to -remember. +[cheat][2] 允许你在命令行中创建和查看交互式 cheatsheet。它旨在帮助提醒 *nix 系统管理员 +他们经常使用但还没频繁到会记住的命令的选项。 -#### How to Install Cheat +#### 如何安装 Cheat -Cheat package was developed using python, so install pip package to install -cheat on your system. +cheat 是使用 python 开发的,所以用 pip 来在你的系统上安装 cheat。 -For **`Debian/Ubuntu`** , use [apt-get command][3] or [apt command][4] to -install pip. +对于 **`Debian/Ubuntu`** 用户,请使用[ apt-get 命令][3]或[ apt 命令][4]来安装 pip。 ``` - [For Python2] + [对于 Python2] $ sudo apt install python-pip python-setuptools - [For Python3] + [对于 Python3] $ sudo apt install python3-pip ``` -pip doesn't shipped with **`RHEL/CentOS`** system official repository so, -enable [EPEL Repository][5] and use [YUM command][6] to install pip. +**`RHEL/CentOS`** 官方仓库中没有 pip,因此使用[ EPEL 仓库][5],并使用[ YUM 命令][6]安装 pip。 ``` @@ -50,62 +39,61 @@ enable [EPEL Repository][5] and use [YUM command][6] to install pip. ``` -For **`Fedora`** system, use [dnf Command][7] to install pip. +对于 **`Fedora`** 系统,使用[ dnf 命令][7]来安装 pip。 ``` - [For Python2] + [对于 Python2] $ sudo dnf install python-pip - [For Python3] + [对于 Python3] $ sudo dnf install python3 ``` -For **`Arch Linux`** based systems, use [Pacman Command][8] to install pip. +对于基于 **`Arch Linux`** 的系统,请使用[ Pacman 命令][8] 来安装 pip。 ``` - [For Python2] + [对于 Python2] $ sudo pacman -S python2-pip python-setuptools - [For Python3] + [对于 Python3] $ sudo pacman -S python-pip python3-setuptools ``` -For **`openSUSE`** system, use [Zypper Command][9] to install pip. +对于 **`openSUSE`** 系统,使用[ Zypper 命令][9]来安装 pip。 ``` - [For Python2] + [对于 Python2] $ sudo pacman -S python-pip - [For Python3] + [对于 Python3] $ sudo pacman -S python3-pip ``` -pip is a python module bundled with setuptools, it's one of the recommended -tool for installing Python packages in Linux. +pip 是一个与 setuptools 捆绑在一起的 Python 模块,它是在 Linux 中安装 Python 包推荐的工具之一。 ``` @@ -113,10 +101,9 @@ tool for installing Python packages in Linux. ``` -#### How to Use Cheat +#### 如何使用 Cheat -Run `cheat` followed by corresponding `command` to view the cheatsheet, For -demonstration purpose, we are going to check about `tar` command examples. +运行 `cheat`,然后按相应的`命令`来查看 cheatsheet,作为例子,我们要来看下 `tar` 命令的例子。 ``` @@ -158,7 +145,7 @@ demonstration purpose, we are going to check about `tar` command examples. ``` -Run the following command to see what cheatsheets are available. +运行下面的命令查看可用的 cheatsheet。 ``` @@ -166,7 +153,7 @@ Run the following command to see what cheatsheets are available. ``` -Navigate to help page for more details. +进入帮助页面获取更多详细信息。 ``` @@ -180,7 +167,7 @@ Navigate to help page for more details. via: https://www.2daygeek.com/cheat-a-collection-of-practical-linux-command-examples/ 作者:[Magesh Maruthamuthu][a] -译者:[译者ID](https://github.com/译者ID) +译者:[geekpi](https://github.com/geekpi) 校对:[校对者ID](https://github.com/校对者ID) 本文由 [LCTT](https://github.com/LCTT/TranslateProject) 原创编译,[Linux中国](https://linux.cn/) 荣誉推出