已翻译 by Mr小眼儿

Signed-off-by: tinyeyeser <tinyeyeser@gmail.com>
This commit is contained in:
tinyeyeser 2013-09-22 10:27:19 +08:00
parent 515aeef58e
commit fd51b3d631
2 changed files with 90 additions and 92 deletions

View File

@ -1,92 +0,0 @@
CLEX A Versatile Command Line File Manager With Integrated Command Prompt
===========
Whether you are a system administrator or a normal command line user, hopping between file manager and command line can get frustrating some times. At some time or the other, you tend to look at some command line alternative to the graphical file manager that you use.
Chances are that youll find a decent command line manager but that would still require switching between file manager window and your command prompt window. So the question remains, is there a file manager that combines file explorer and command prompt in a single window? The answer is yes and the file manager is **CLEX**.
![](http://mylinuxbook.com/wp-content/uploads/2013/09/clex-main.png)
## CLEX The Command Line File Manager ##
Clex is a command line based file manager that has a nice little user interface and provides a lot of options for file management. The main advantage of this file manager is that it also provides a command prompt (in the same window) through which you can run regular commands.
**NOTE** All the examples presented here are tested on Ubuntu 13.04.
**A Brief Tutorial**
Here is the Clex UI when it was first executed on my machine:
![](http://mylinuxbook.com/wp-content/uploads/2013/09/clex-1.png)
So you can see that all the files and directories in the current working directory (**/home/himanshu/** in this case) were displayed in the upper half of the window. You can use the up and down arrow keys to select a file or a directory and press enter to get inside a directory.
In the lower half of the window, the file manager provides a command line prompt (bash prompt in my case). Any installed command line utility can be executed from here.
For example, to open an image file Ubuntu.png, the arrow keys were used to select it first :
![](http://mylinuxbook.com/wp-content/uploads/2013/09/clex-2.png)
Then, an installed image viewer (gthumb in my case) was used (with Ubuntu.png as argument) through command prompt.
![](http://mylinuxbook.com/wp-content/uploads/2013/09/clex-3.png)
The image viewer program gthumb displayed the image as soon as the complete command was executed.
![](http://mylinuxbook.com/wp-content/uploads/2013/09/clex-4.png)
Besides, Clex also provides a range of other useful options which can be accessed by pressing Alt+M.
![](http://mylinuxbook.com/wp-content/uploads/2013/09/clex-5.png)
So you can use these options to change the current working directory, add bookmarks, view command history, sort file names, compare directories etc.
Here is a snapshot when command history option was used :
![](http://mylinuxbook.com/wp-content/uploads/2013/09/clex-6.png)
Similarly you can use other options as per your requirement.
**NOTE** Use Alt+q to quit Clex.
**Download/Install**
Here are some of the useful links related to Clex file manager:
- [Home Page](http://www.clex.sk/about.html)
- [Download](http://www.clex.sk/download/)
- [Documentation](http://www.clex.sk/help/file_intro.html)
Ubuntu users can directly download and install this software using Ubuntu Software Centre. The version used for this review was 3.15.
**Pros**
- Integration of file explorer and command line prompt in the same window
- Lots of options like directory comparison, file name sorting, command line history etc
- Good online documentation
**Cons**
- Depends on CURSES library with wide character support. This may cause problems while building from source.
- Has some start-up problems, displays the following warning every-time it is launched :
![](http://mylinuxbook.com/wp-content/uploads/2013/09/clex-warning.png)
**Conclusion**
Clex is certainly a feature rich command line file manager. The integration with command prompt is its USP. Minor hiccups apart, it is a time-saving utility that demands a bit of practice to get used to it.
via:http://mylinuxbook.com/clex-a-versatile-command-line-file-manager/
本文由 [LCTT][] 原创翻译,[Linux中国][] 荣誉推出
译者:[Mr小眼儿] 校对:[校对者ID][]
[LCTT]:https://github.com/LCTT/TranslateProject
[Linux中国]:http://linux.cn/portal.php
[译者ID]:http://linux.cn/space/译者ID
[校对者ID]:http://linux.cn/space/校对者ID
[1]:http://mylinuxbook.com/clex-a-versatile-command-line-file-manager/
[2]:http://www.clex.sk/about.html
[3]:http://www.clex.sk/download/
[4]:http://www.clex.sk/help/file_intro.html

View File

@ -0,0 +1,90 @@
集成命令提示符、堪称“多才多艺”的命令行文件管理器 - CLEX
===========
作为一名系统管理员亦或是一名普通的命令行用户,在文件管理器和命令行之间频繁切换是否时常令你感到沮丧。更多时候,你是否只好使用一些命令行口令以代替图形化界面的文件管理器。
也许,偶尔你会找到一款不错的命令行管理器,但即使如此,你仍然需要在你的文件管理器和命令行窗口之间来回切换。所以,这个问题并没有真正解决。那么,是否有一款文件管理器能将文件浏览和命令提示符集成在同一个窗口里呢?答案是肯定的,它就是**CLEX**。
![](http://mylinuxbook.com/wp-content/uploads/2013/09/clex-main.png)
## CLEX - 命令行文件管理器 ##
CLEX是一款基于命令行的文件管理器它拥有一个漂亮轻巧的用户界面提供了非常多的文件管理选项。这款文件管理器的最大优势是它还集成提供了一个命令提示符在同一个窗口中哦~),通过这个命令提示符,你可以执行绝大部分的常规命令。
**注** - 下文中的所有例子均测试于Ubuntu13.04。
**简易教程**
下图是在我机器上第一次执行CLEX的样子
![](http://mylinuxbook.com/wp-content/uploads/2013/09/clex-1.png)
可以看到,窗口的上半部分列出了当前工作路径(本例中**/home/himanshu/**)下的所有的文件和目录。你可以使用上下方向键选择一个文件或目录,也可以按下回车进入一个目录。
在窗口的下半部分CLEX提供了一个命令行提示符(在我的测试中为bash),在这里你可以执行任意已经安装好的命令。
举个例子想要打开下图中的图片文件Ubuntu.png首先使用方向键选中它
![](http://mylinuxbook.com/wp-content/uploads/2013/09/clex-2.png)
然后Ubuntu.png作为参数使用命令提示符启动一个已安装好的图片查看器我机器上装的是gthumb
![](http://mylinuxbook.com/wp-content/uploads/2013/09/clex-3.png)
上述命令执行的同时图片查看器程序gthumb将图片显示了出来。
![](http://mylinuxbook.com/wp-content/uploads/2013/09/clex-4.png)
除此以外CLEX还提供了一系列很好用的快捷键组合按下Alt+M查看。
![](http://mylinuxbook.com/wp-content/uploads/2013/09/clex-5.png)
可以看到,这些快捷键包括改变当前工作路径,添加书签,查看历史命令,文件名排序,比较文件夹等等。
下图为查看历史命令的截图:
![](http://mylinuxbook.com/wp-content/uploads/2013/09/clex-6.png)
比葫芦画瓢,每次根据不同需要,你可以选用相应的快捷键组合。
**注** - 退出CLEX的快捷键是Alt+q。
**下载/安装**
下面列出了一些CLEX文件管理器的相关链接
- [主页](http://www.clex.sk/about.html)
- [下载](http://www.clex.sk/download/)
- [文档](http://www.clex.sk/help/file_intro.html)
Ubuntu用户可以直接通过Ubuntu软件中心下载安装。本文中的示例使用的版本是3.15。
**优点**
- 在同一个窗口中整合了文件浏览与命令提示符
- 提供大量快捷键。包括文件夹比较,文件名排序,查看历史命令等等。
- 出色的在线文档
**缺点**
- 依赖于CURSES库需要宽字符集支持。因此通过源码安装的时候可能会导致一些问题。
- 启动时不稳定,我每次启动时都会出现下图中的警告:
![](http://mylinuxbook.com/wp-content/uploads/2013/09/clex-warning.png)
**结论**
CLEX确实是一款特性丰富的命令行文件管理器。集成命令提示符是它的独特卖点。尽管有些小毛病但瑕不掩瑜。经过一段时间的适应后CLEX仍是一款省时高效的工具。
via:http://mylinuxbook.com/clex-a-versatile-command-line-file-manager/
本文由 [LCTT][] 原创翻译,[Linux中国][] 荣誉推出
译者:[Mr小眼儿] 校对:[校对者ID][]
[LCTT]:https://github.com/LCTT/TranslateProject
[Linux中国]:http://linux.cn/portal.php
[Mr小眼儿]:http://linux.cn/space/14801
[校对者ID]:http://linux.cn/space/校对者ID
[1]:http://mylinuxbook.com/clex-a-versatile-command-line-file-manager/
[2]:http://www.clex.sk/about.html
[3]:http://www.clex.sk/download/
[4]:http://www.clex.sk/help/file_intro.html