diff --git a/translated/tech/20190318 10 Python image manipulation tools.md b/published/20190318 10 Python image manipulation tools.md
similarity index 71%
rename from translated/tech/20190318 10 Python image manipulation tools.md
rename to published/20190318 10 Python image manipulation tools.md
index fc9653f4c7..529d07c898 100644
--- a/translated/tech/20190318 10 Python image manipulation tools.md
+++ b/published/20190318 10 Python image manipulation tools.md
@@ -1,8 +1,8 @@
[#]: collector: (lujun9972)
[#]: translator: (HankChow)
-[#]: reviewer: ( )
-[#]: publisher: ( )
-[#]: url: ( )
+[#]: reviewer: (wxy)
+[#]: publisher: (wxy)
+[#]: url: (https://linux.cn/article-10679-1.html)
[#]: subject: (10 Python image manipulation tools)
[#]: via: (https://opensource.com/article/19/3/python-image-manipulation-tools)
[#]: author: (Parul Pandey https://opensource.com/users/parul-pandey)
@@ -10,19 +10,19 @@
10 个 Python 图像编辑工具
======
-以下提到的这些 Python 工具在编辑图像、操作图像底层数据方面都提供了简单直接的方法。
+> 以下提到的这些 Python 工具在编辑图像、操作图像底层数据方面都提供了简单直接的方法。
![][1]
-当今的世界充满了可以被利用的数据,而图像数据就是其中很重要的一部分。但只有经过处理和分析,提高图像的质量,从中提取出有效地信息,才能利用到这些图像数据。
+当今的世界充满了数据,而图像数据就是其中很重要的一部分。但只有经过处理和分析,提高图像的质量,从中提取出有效地信息,才能利用到这些图像数据。
-常见的图像处理操作包括显示图像,图像的裁剪、翻转、旋转,图像的分割、分类、特征提取,图像识别,以及图像识别等等。Python 作为一种日益风靡的科学编程语言,是这些图像处理操作的最佳选择。同时,在 Python 生态当中也有很多优秀的图像处理工具可以被免费使用。
+常见的图像处理操作包括显示图像,基本的图像操作,如裁剪、翻转、旋转;图像的分割、分类、特征提取;图像恢复;以及图像识别等等。Python 作为一种日益风靡的科学编程语言,是这些图像处理操作的最佳选择。同时,在 Python 生态当中也有很多可以免费使用的优秀的图像处理工具。
-下文将介绍 10 个可以用于图像处理任务的 Python 工具,它们在编辑图像、查看图像底层数据方面都提供了简单直接的方法。
+下文将介绍 10 个可以用于图像处理任务的 Python 库,它们在编辑图像、查看图像底层数据方面都提供了简单直接的方法。
-### 1\. scikit-image
+### 1、scikit-image
-[scikit-image][2] 是一个结合 [NumPy][3] 数组使用的开源 Python 工具,它实现了可用于研究、教育、工业应用的算法和应用程序。即使是对于刚刚接触 Python 生态圈的新手来说,它也是一个在使用上足够简单的库。同时它的代码质量也足够高,因为它是由一个活跃的志愿者社区开发的,并且通过了同行评审。
+[scikit-image][2] 是一个结合 [NumPy][3] 数组使用的开源 Python 工具,它实现了可用于研究、教育、工业应用的算法和应用程序。即使是对于刚刚接触 Python 生态圈的新手来说,它也是一个在使用上足够简单的库。同时它的代码质量也很高,因为它是由一个活跃的志愿者社区开发的,并且通过了同行评审。
#### 资源
@@ -30,7 +30,7 @@ scikit-image 的[文档][4]非常完善,其中包含了丰富的用例。
#### 示例
-通过 `import skimage` 就可以导入 scikit-image,大部分的功能都可以在它的子模块中找到。
+可以通过导入 `skimage` 使用,大部分的功能都可以在它的子模块中找到。
图像滤波:
@@ -53,9 +53,9 @@ plt.imshow(edges, cmap='gray')
在[展示页面][10]可以看到更多相关的例子。
-### 2\. NumPy
+### 2、NumPy
-[NumPy][11] 提供了对数组的支持,是 Python 编程的一个核心库。图像的本质其实也是一个包含数据点像素的标准 NumPy 数组,因此可以通过一些基本的 NumPy 操作(例如切片、掩码、花式索引等),就可以从像素级别对图像进行编辑。通过 NumPy 数组存储的图像也可以被 skimage 加载并使用 matplotlib 显示。
+[NumPy][11] 提供了对数组的支持,是 Python 编程的一个核心库。图像的本质其实也是一个包含像素数据点的标准 NumPy 数组,因此可以通过一些基本的 NumPy 操作(例如切片、掩膜、花式索引等),就可以从像素级别对图像进行编辑。通过 NumPy 数组存储的图像也可以被 skimage 加载并使用 matplotlib 显示。
#### 资源
@@ -63,7 +63,7 @@ plt.imshow(edges, cmap='gray')
#### 示例
-使用 NumPy 对图像进行掩码操作:
+使用 NumPy 对图像进行掩膜操作:
```
import numpy as np
@@ -82,17 +82,18 @@ plt.imshow(image, cmap='gray')
![NumPy][13]
-### 3\. SciPy
+### 3、SciPy
-[SciPy][14] 是 Python 的一个核心科学计算模块,也可以用于图像的基本操作和处理。尤其是 SciPy v1.1.0 中的 [scipy.ndimage][15] 子模块,它提供了在 n 维 NumPy 数组上的运行的函数。SciPy 目前还提供了线性和非线性滤波、二值形态学、B 样条插值、对象测量等方面的函数。
+像 NumPy 一样,[SciPy][14] 是 Python 的一个核心科学计算模块,也可以用于图像的基本操作和处理。尤其是 SciPy v1.1.0 中的 [scipy.ndimage][15] 子模块,它提供了在 n 维 NumPy 数组上的运行的函数。SciPy 目前还提供了线性和非线性滤波、二值形态学、B 样条插值、对象测量等方面的函数。
#### 资源
-在[官方文档][16]中可以查阅到 scipy.ndimage 的完整函数列表。
+在[官方文档][16]中可以查阅到 `scipy.ndimage` 的完整函数列表。
#### 示例
使用 SciPy 的[高斯滤波][17]对图像进行模糊处理:
+
```
from scipy import misc,ndimage
@@ -106,9 +107,9 @@ plt.imshow()
![Using a Gaussian filter in SciPy][19]
-### 4\. PIL/Pillow
+### 4、PIL/Pillow
-PIL (Python Imaging Library) 是一个自由的 Python 编程库,它提供了对多种格式图像文件的打开、编辑、保存的支持。但在 2009 年之后 PIL 就停止发布新版本了。幸运的是,还有一个 PIL 的积极开发的分支 [Pillow][20],它的安装过程比 PIL 更加简单,支持大部分主流的操作系统,并且还支持 Python 3。Pillow 包含了图像的基础处理功能,包括像素点操作、使用内置卷积内核进行滤波、颜色空间转换等等。
+PIL (Python Imaging Library) 是一个免费 Python 编程库,它提供了对多种格式图像文件的打开、编辑、保存的支持。但在 2009 年之后 PIL 就停止发布新版本了。幸运的是,还有一个 PIL 的积极开发的分支 [Pillow][20],它的安装过程比 PIL 更加简单,支持大部分主流的操作系统,并且还支持 Python 3。Pillow 包含了图像的基础处理功能,包括像素点操作、使用内置卷积内核进行滤波、颜色空间转换等等。
#### 资源
@@ -132,9 +133,9 @@ enh.enhance(1.8).show("30% more contrast")
![Enhancing an image in Pillow using ImageFilter][23]
-[源码][24]
+- [源码][24]
-### 5\. OpenCV-Python
+### 5、OpenCV-Python
OpenCV(Open Source Computer Vision 库)是计算机视觉领域最广泛使用的库之一,[OpenCV-Python][25] 则是 OpenCV 的 Python API。OpenCV-Python 的运行速度很快,这归功于它使用 C/C++ 编写的后台代码,同时由于它使用了 Python 进行封装,因此调用和部署的难度也不大。这些优点让 OpenCV-Python 成为了计算密集型计算机视觉应用程序的一个不错的选择。
@@ -149,9 +150,9 @@ OpenCV(Open Source Computer Vision 库)是计算机视觉领域最广泛使
![Image blending using Pyramids in OpenCV-Python][28]
-[源码][29]
+- [源码][29]
-### 6\. SimpleCV
+### 6、SimpleCV
[SimpleCV][30] 是一个开源的计算机视觉框架。它支持包括 OpenCV 在内的一些高性能计算机视觉库,同时不需要去了解位深度、文件格式、色彩空间之类的概念,因此 SimpleCV 的学习曲线要比 OpenCV 平缓得多,正如它的口号所说,“将计算机视觉变得更简单”。SimpleCV 的优点还有:
@@ -164,13 +165,11 @@ OpenCV(Open Source Computer Vision 库)是计算机视觉领域最广泛使
#### 示例
-### [7-_simplecv.png][32]
-
![SimpleCV][33]
-### 7\. Mahotas
+### 7、Mahotas
-[Mahotas][34] 是一个 Python 图像处理和计算机视觉库。在图像处理方面,它支持滤波和形态学相关的操作;在计算机视觉方面,它也支持特征计算、兴趣点检测、局部描述符等功能。Mahotas 的接口使用了 Python 进行编写,因此适合快速开发,而算法使用 C++ 实现,并针对速度进行了优化。Mahotas 尽可能做到代码量少和依赖项少,因此它的运算速度非常快。可以参考[官方文档][35]了解更多详细信息。
+[Mahotas][34] 是另一个 Python 图像处理和计算机视觉库。在图像处理方面,它支持滤波和形态学相关的操作;在计算机视觉方面,它也支持特征计算、兴趣点检测、局部描述符等功能。Mahotas 的接口使用了 Python 进行编写,因此适合快速开发,而算法使用 C++ 实现,并针对速度进行了优化。Mahotas 尽可能做到代码量少和依赖项少,因此它的运算速度非常快。可以参考[官方文档][35]了解更多详细信息。
#### 资源
@@ -182,15 +181,13 @@ Mahotas 力求使用少量的代码来实现功能。例如这个 [Finding Wally
![Finding Wally problem in Mahotas][39]
-[源码][40]
-
![Finding Wally problem in Mahotas][42]
-[源码][40]
+- [源码][40]
-### 8\. SimpleITK
+### 8、SimpleITK
-[ITK][43](Insight Segmentation and Registration Toolkit)是一个为开发者提供普适性图像分析功能的开源、跨平台工具,[SimpleITK][44] 则是基于 ITK 构建出来的一个简化层,旨在促进 ITK 在快速原型设计、教育、解释语言中的应用。SimpleITK 作为一个图像分析工具包,它也带有[大量的组件][45],可以支持常规的滤波、图像分割、图像配准功能。尽管 SimpleITK 使用 C++ 编写,但它也支持包括 Python 在内的大部分编程语言。
+[ITK][43](Insight Segmentation and Registration Toolkit)是一个为开发者提供普适性图像分析功能的开源、跨平台工具套件,[SimpleITK][44] 则是基于 ITK 构建出来的一个简化层,旨在促进 ITK 在快速原型设计、教育、解释语言中的应用。SimpleITK 作为一个图像分析工具包,它也带有[大量的组件][45],可以支持常规的滤波、图像分割、图像配准功能。尽管 SimpleITK 使用 C++ 编写,但它也支持包括 Python 在内的大部分编程语言。
#### 资源
@@ -202,9 +199,9 @@ Mahotas 力求使用少量的代码来实现功能。例如这个 [Finding Wally
![SimpleITK animation][48]
-[源码][49]
+- [源码][49]
-### 9\. pgmagick
+### 9、pgmagick
[pgmagick][50] 是使用 Python 封装的 GraphicsMagick 库。[GraphicsMagick][51] 通常被认为是图像处理界的瑞士军刀,因为它强大而又高效的工具包支持对多达 88 种主流格式图像文件的读写操作,包括 DPX、GIF、JPEG、JPEG-2000、PNG、PDF、PNM、TIFF 等等。
@@ -218,15 +215,15 @@ pgmagick 的 [GitHub 仓库][52]中有相关的安装说明、依赖列表,以
![Image scaling in pgmagick][55]
-[源码][56]
+- [源码][56]
边缘提取:
![Edge extraction in pgmagick][58]
-[源码][59]
+- [源码][59]
-### 10\. Pycairo
+### 10、Pycairo
[Cairo][61] 是一个用于绘制矢量图的二维图形库,而 [Pycairo][60] 是用于 Cairo 的一组 Python 绑定。矢量图的优点在于做大小缩放的过程中不会丢失图像的清晰度。使用 Pycairo 可以在 Python 中调用 Cairo 的相关命令。
@@ -240,7 +237,7 @@ Pycairo 的 [GitHub 仓库][62]提供了关于安装和使用的详细说明,
![Pycairo][65]
-[源码][66]
+- [源码][66]
### 总结
@@ -253,7 +250,7 @@ via: https://opensource.com/article/19/3/python-image-manipulation-tools
作者:[Parul Pandey][a]
选题:[lujun9972][b]
译者:[HankChow](https://github.com/HankChow)
-校对:[校对者ID](https://github.com/校对者ID)
+校对:[wxy](https://github.com/wxy)
本文由 [LCTT](https://github.com/LCTT/TranslateProject) 原创编译,[Linux中国](https://linux.cn/) 荣誉推出
diff --git a/sources/tech/20170710 iWant - The Decentralized Peer To Peer File Sharing Commandline Application.md b/sources/tech/20170710 iWant - The Decentralized Peer To Peer File Sharing Commandline Application.md
deleted file mode 100644
index cb6e35da76..0000000000
--- a/sources/tech/20170710 iWant - The Decentralized Peer To Peer File Sharing Commandline Application.md
+++ /dev/null
@@ -1,203 +0,0 @@
-Translating by MjSeven
-
-
-iWant – The Decentralized Peer To Peer File Sharing Commandline Application
-======
-
-
-
-A while ago, we have written a guide about two file sharing utilities named [**transfer.sh**][1], a free web service that allows you to share files over Internet easily and quickly, and [**PSiTransfer**][2], a simple open source self-hosted file sharing solution. Today, we will see yet another file sharing utility called **“iWant”**. It is a free and open source CLI-based decentralized peer to peer file sharing application.
-
-What’s makes it different from other file sharing applications? You might wonder. Here are some prominent features of iWant.
-
- * It’s commandline application. You don’t need any memory consuming GUI utilities. You need only the Terminal.
- * It is decentralized. That means your data will not be stored in any central location. So, there is no central point of failure.
- * iWant allows you to pause the download and you can resume it later when you want. You don’t need to download it from beginning, it just resumes the downloads from where you left off.
- * Any changes made in the files in the shared directory (such as deletion, addition, modification) will be reflected instantly in the network.
- * Just like torrents, iWant downloads the files from multiple peers. If any seeder left the group or failed to respond, it will continue the download from another seeder.
- * It is cross-platform, so, you can use it in GNU/Linux, MS Windows, and Mac OS X.
-
-
-
-### iWant – A CLI-based Decentralized Peer To Peer File Sharing Solution
-
-#### Install iWant
-
-iWant can be easily installed using PIP package manager. Make sure you have pip installed in your Linux distribution. if it is not installed yet, refer the following guide.
-
-[How To Manage Python Packages Using Pip](https://www.ostechnix.com/manage-python-packages-using-pip/)
-
-After installing PIP, make sure you have installed the the following dependencies:
-
- * libffi-dev
- * libssl-dev
-
-
-
-Say for example, on Ubuntu, you can install these dependencies using command:
-```
-$ sudo apt-get install libffi-dev libssl-dev
-
-```
-
-Once all dependencies installed, install iWant using the following command:
-```
-$ sudo pip install iwant
-
-```
-
-We have now iWant in our system. Let us go ahead and see how to use it to transfer files over network.
-
-#### Usage
-
-First, start iWant server using command:
-```
-$ iwanto start
-
-```
-
-At the first time, iWant will ask the Shared and Download folder’s location. Enter the actual location of both folders. Then, choose which interface you want to use:
-
-Sample output would be:
-```
-Shared/Download folder details looks empty..
-Note: Shared and Download folder cannot be the same
-SHARED FOLDER(absolute path):/home/sk/myshare
-DOWNLOAD FOLDER(absolute path):/home/sk/mydownloads
-Network interface available
-1. lo => 127.0.0.1
-2. enp0s3 => 192.168.43.2
-Enter index of the interface:2
-now scanning /home/sk/myshare
-[Adding] /home/sk/myshare 0.0
-Updating Leader 56f6d5e8-654e-11e7-93c8-08002712f8c1
-[Adding] /home/sk/myshare 0.0
-connecting to 192.168.43.2:1235 for hashdump
-
-```
-
-If you see an output something like above, you can start using iWant right away.
-
-Similarly, start iWant service on all systems in the network, assign valid Shared and Downloads folder’s location, and select the network interface card.
-
-The iWant service will keep running in the current Terminal window until you press **CTRL+C** to quit it. You need to open a new tab or new Terminal window to use iWant.
-
-iWant usage is very simple. It has few commands as listed below.
-
- * **iwanto start** – Starts iWant server.
- * **iwanto search ** – Search for files.
- * **iwanto download ** – Download a file.
- * **iwanto share ** – Change the Shared folder’s location.
- * **iwanto download to ** – Change the Download folder’s location.
- * **iwanto view config** – View Shared and Download folders.
- * **iwanto –version** – Displays the iWant version.
- * **iwanto -h** – Displays the help section.
-
-
-
-Allow me to show you some examples.
-
-**Search files**
-
-To search for a file, run:
-```
-$ iwanto search
-
-```
-
-Please note that you don’t need to specify the accurate name.
-
-Example:
-```
-$ iwanto search command
-
-```
-
-The above command will search for any files that contains the string “command”.
-
-Sample output from my Ubuntu system:
-```
-Filename Size Checksum
-------------------------------------------- ------- --------------------------------
-/home/sk/myshare/THE LINUX COMMAND LINE.pdf 3.85757 efded6cc6f34a3d107c67c2300459911
-
-```
-
-**Download files**
-
-You can download the files from any system on your network. To download a file, just mention the hash (checksum) of the file as shown below. You can get hash value of a share using “iwanto search” command.
-```
-$ iwanto download efded6cc6f34a3d107c67c2300459911
-
-```
-
-The file will be saved in your Download location (/home/sk/mydownloads/ in my case).
-```
-Filename: /home/sk/mydownloads/THE LINUX COMMAND LINE.pdf
-Size: 3.857569 MB
-
-```
-
-**View configuration**
-
-To view the configuration i.e the Shared and Download folders, run:
-```
-$ iwanto view config
-
-```
-
-Sample output:
-```
-Shared folder:/home/sk/myshare
-Download folder:/home/sk/mydownloads
-
-```
-
-**Change Shared and Download folder’s location**
-
-You can change the Shared folder and Download folder location to some other path like below.
-```
-$ iwanto share /home/sk/ostechnix
-
-```
-
-Now, the Shared location has been changed to /home/sk/ostechnix location.
-
-Also, you can change the Downloads location using command:
-```
-$ iwanto download to /home/sk/Downloads
-
-```
-
-To view the changes made, run the config command:
-```
-$ iwanto view config
-
-```
-
-**Stop iWant**
-
-Once you done with iWant, you can quit it by pressing **CTRL+C**.
-
-If it is not working by any chance, it might be due to Firewall or your router doesn’t support multicast. You can view all logs in** ~/.iwant/.iwant.log** file. For more details, refer the project’s GitHub page provided at the end.
-
-And, that’s all. Hope this tool helps. I will be here again with another interesting guide. Till then, stay tuned with OSTechNix!
-
-Cheers!
-
-
-
---------------------------------------------------------------------------------
-
-via: https://www.ostechnix.com/iwant-decentralized-peer-peer-file-sharing-commandline-application/
-
-作者:[SK][a]
-选题:[lujun9972](https://github.com/lujun9972)
-译者:[译者ID](https://github.com/译者ID)
-校对:[校对者ID](https://github.com/校对者ID)
-
-本文由 [LCTT](https://github.com/LCTT/TranslateProject) 原创编译,[Linux中国](https://linux.cn/) 荣誉推出
-
-[a]:https://www.ostechnix.com/author/sk/
-[1]:https://www.ostechnix.com/easy-fast-way-share-files-internet-command-line/
-[2]:https://www.ostechnix.com/psitransfer-simple-open-source-self-hosted-file-sharing-solution/
diff --git a/translated/tech/20170710 iWant - The Decentralized Peer To Peer File Sharing Commandline Application.md b/translated/tech/20170710 iWant - The Decentralized Peer To Peer File Sharing Commandline Application.md
new file mode 100644
index 0000000000..f46feda94f
--- /dev/null
+++ b/translated/tech/20170710 iWant - The Decentralized Peer To Peer File Sharing Commandline Application.md
@@ -0,0 +1,194 @@
+iWant – 一个分散的点对点共享文件的命令行应用程序
+======
+
+
+
+不久之前,我们编写了一个指南,内容是一个文件共享实用程序,名为 [**transfer.sh**][1],它是一个免费的 Web 服务,允许你在 Internet 上轻松快速地共享文件,还有 [**PSiTransfer**][2],一个简单的开源自托管文件共享解决方案。今天,我们将看到另一个名为 **"iWant"** 的文件共享实用程序。它是一个免费的,基于 CLI 的开源分散式点对点文件共享应用程序。
+
+你可能想知道,它与其它文件共享应用程序有什么不同?以下是 iWant 的一些突出特点。
+
+ * 它是一个命令行应用程序。这意味着你不需要消耗内存来加载 GUI 实用程序。你只需要一个终端。
+ * 它是分散的。这意味着你的数据不会在任何中心位置存储。因此,不会因为中心失败而失败。
+ * iWant 允许中断下载,你可以在以后随时恢复。你不需要从头开始下载,它会从你停止的位置恢复下载。
+ * 共享目录中文件所作的任何更改(如删除、添加、修改)都会立即反映在网络中。
+ * 就像种子一样,iWant 从多个节点下载文件。如果任何节点离开群组或未能响应,它将继续从另一个节点下载。
+ * 它是跨平台的,因此你可以在 GNU/Linux, MS Windows 或者 Mac OS X 中使用它。
+
+### iWant – 一个基于 CLI 的分散点对点文件共享解决方案
+
+#### 安装 iWant
+
+iWant 可以使用 PIP 包管理器轻松安装。确保你在 Linux 发行版中安装了 pip。如果尚未安装,参考以下指南。
+
+[如何使用 Pip 管理 Python 包](https://www.ostechnix.com/manage-python-packages-using-pip/)
+
+安装 PIP 后,确保你有以下依赖项:
+
+ * libffi-dev
+ * libssl-dev
+
+比如说,在 Ubuntu 上,你可以使用以下命令安装这些依赖项:
+```
+$ sudo apt-get install libffi-dev libssl-dev
+
+```
+
+安装完所有依赖项后,使用以下命令安装 iWant:
+```
+$ sudo pip install iwant
+
+```
+
+现在我们的系统中已经有了 iWant,让我们来看看如何使用它来通过网络传输文件。
+
+#### 用法
+
+首先,使用以下命令启动 iWant 服务器:
+```
+$ iwanto start
+
+```
+
+第一次启动时,iWant 会询问想要分享和下载文件夹的位置,所以需要输入两个文件夹的位置。然后,选择要使用的网卡。
+
+示例输出:
+```
+Shared/Download folder details looks empty..
+Note: Shared and Download folder cannot be the same
+SHARED FOLDER(absolute path):/home/sk/myshare
+DOWNLOAD FOLDER(absolute path):/home/sk/mydownloads
+Network interface available
+1. lo => 127.0.0.1
+2. enp0s3 => 192.168.43.2
+Enter index of the interface:2
+now scanning /home/sk/myshare
+[Adding] /home/sk/myshare 0.0
+Updating Leader 56f6d5e8-654e-11e7-93c8-08002712f8c1
+[Adding] /home/sk/myshare 0.0
+connecting to 192.168.43.2:1235 for hashdump
+
+```
+
+如果你看到类似上面的输出,你可以立即开始使用 iWant。
+
+同样,在网络种的所有系统上启动 iWant 服务,指定有效的分享和下载文件夹的位置,并选择合适的网卡。
+
+iWant 服务将继续在当前终端窗口中运行,直到你按下 **CTRL+C** 退出为止。你需要打开一个新选项卡或新的终端窗口来使用 iWant。
+
+iWant 的用法非常简单,它的命令很少,如下所示。
+
+ * **iwanto start** – 启动 iWant 服务。
+ * **iwanto search ** – 查找文件。
+ * **iwanto download ** – 下载一个文件。
+ * **iwanto share ** – 更改共享文件夹的位置。
+ * **iwanto download to ** – 更改下载文件夹位置。
+ * **iwanto view config** – 查看共享和下载文件夹。
+ * **iwanto –version** – 显示 iWant 版本。
+ * **iwanto -h** – 显示帮助信息。
+
+让我向你展示一些例子。
+
+**查找文件**
+
+要查找一个文件,运行:
+```
+$ iwanto search
+
+```
+
+请注意,你无需指定确切的名称。
+
+示例:
+```
+$ iwanto search command
+
+```
+
+上面的命令将搜索包含 "command" 字符串的所有文件。
+
+我的 Ubuntu 系统会输出:
+```
+Filename Size Checksum
+------------------------------------------- ------- --------------------------------
+/home/sk/myshare/THE LINUX COMMAND LINE.pdf 3.85757 efded6cc6f34a3d107c67c2300459911
+
+```
+
+**下载文件**
+
+你可以在你的网络上的任何系统下载文件。要下载文件,只需提供文件的哈希(校验和),如下所示。你可以使用 "iwanto search" 命令获取共享的哈希值。
+```
+$ iwanto download efded6cc6f34a3d107c67c2300459911
+
+```
+
+文件将保存在你的下载位置,在本文中是 `/home/sk/mydownloads/` 位置。
+```
+Filename: /home/sk/mydownloads/THE LINUX COMMAND LINE.pdf
+Size: 3.857569 MB
+
+```
+
+**查看配置**
+
+要查看配置,例如共享和下载文件夹的位置,运行:
+```
+$ iwanto view config
+
+```
+
+示例输出:
+```
+Shared folder:/home/sk/myshare
+Download folder:/home/sk/mydownloads
+
+```
+
+**更改共享和下载文件夹的位置**
+
+你可以更改共享文件夹和下载文件夹。
+```
+$ iwanto share /home/sk/ostechnix
+
+```
+
+现在,共享位置已更改为 `/home/sk/ostechnix`。
+
+同样,你可以使用以下命令更改下载位置:
+```
+$ iwanto download to /home/sk/Downloads
+
+```
+
+要查看所做的更改,运行 `config` 命令:
+```
+$ iwanto view config
+
+```
+
+**停止 iWant**
+
+一旦你不想用 iWant 了,可以按下 **CTRL+C** 退出。
+
+如果它不起作用,那可能是由于防火墙或你的路由器不支持多播。你可以在 ** ~/.iwant/.iwant.log** 文件中查看所有日志。有关更多详细信息,参阅最后提供的项目的 GitHub 页面。
+
+差不多就是全部了。希望这个工具有所帮助。下次我会带着另一个有趣的指南再次来到这里。在那之前,请继续关注 OSTechNix!
+
+干杯!
+
+
+
+--------------------------------------------------------------------------------
+
+via: https://www.ostechnix.com/iwant-decentralized-peer-peer-file-sharing-commandline-application/
+
+作者:[SK][a]
+选题:[lujun9972](https://github.com/lujun9972)
+译者:[MjSeven](https://github.com/MjSeven)
+校对:[校对者ID](https://github.com/校对者ID)
+
+本文由 [LCTT](https://github.com/LCTT/TranslateProject) 原创编译,[Linux中国](https://linux.cn/) 荣誉推出
+
+[a]:https://www.ostechnix.com/author/sk/
+[1]:https://www.ostechnix.com/easy-fast-way-share-files-internet-command-line/
+[2]:https://www.ostechnix.com/psitransfer-simple-open-source-self-hosted-file-sharing-solution/