mirror of
https://github.com/LCTT/TranslateProject.git
synced 2025-01-13 22:30:37 +08:00
translated
This commit is contained in:
parent
0a6b57ff4c
commit
acf7f5adc5
@ -1,57 +1,54 @@
|
||||
Vic020
|
||||
|
||||
Linux Basics: Analyze Disk Usage In Ubuntu Linux
|
||||
Linux基础:Ubuntu磁盘状态分析
|
||||
================================================================================
|
||||
Dear **linux** geeks,
|
||||
亲爱的**linux**Geek们,
|
||||
|
||||
In this tutorial I will teach you how to analyze disk usage in Ubuntu. Taking care of the hard disk of your machine and running the proper analysis on it is very important to make sure that your system is healthy and that it will run in a very smooth way. To do this, we will use a nice graphical tool called **Baobab**.
|
||||
在这篇文章中,将教你们如何在Ubuntu中对磁盘使用情况进行分析。为了系统的健康,时常关心机器的硬盘,适当的运行一些分析是非常重要的,当然,运行这些分析是很容易的。为了完成分析,我们将使用一款非常棒的图形工具,名叫**Baobab**。
|
||||
|
||||
Before going any further I must say that it is a very easy to use tool with many features and I am very sure it will meet your requirements. Baobab was part of gnome-utils, but has been standing as a standalone application since Gnome 3.4. By using this disk analyzer tool you can easily scan the home folder, filesystem and local or remote folders.
|
||||
在进一步之前,我必须声明它是如此的使用简单,功能齐全,我确定它就是你想要的。Baobab是gnome-utils的一部分,但是自从Gnome3.4版本后,已经作为独立应用。通过使用这个磁盘分析工具,你可以轻松扫描文件夹,文件系统,不单是本地,远程目录一样可以轻松分析。
|
||||
|
||||
Everything is done with only a click! Do you like to stop the scanning process? Cool, just hit the **Stop scanning** button available on the top of the baobab’s user interface.
|
||||
所有事只需一次点击!想要停止扫描?简单,看着baobab用户界面,轻点**Stop scanning**按钮,搞定。
|
||||
|
||||
I like the simplicity of this tool and the fact that it can graphically represent data in a ring chart or a treemap chart. Now, how about installing and using it in your own machine?
|
||||
|
||||
As far as I know it should come installed by default in Ubuntu, but if not, open a new terminal (**CTRL+ALT+T**) and run the following command to install it.
|
||||
我喜欢这个工具的简单性并且可以图形化表示数据,像饼状图和树形图。那么怎么样在我的机器安装和使用它呢?
|
||||
|
||||
据我所知,ubuntu已经默认安装,如果没有,打开一个新终端(**CTRL+ALT+T**),然后运行下列命令来安装它。
|
||||
sudo apt-get install baobab
|
||||
|
||||
After the installation is finished go to **Applications, System Tools, Disk Usage Analyzer** or launch baobab directly from the terminal by running the following command.
|
||||
安装完毕后,会分类至**应用程序, 系统工具, 磁盘分析器**,或者,直接使用下列命令,在终端中运行baobab。
|
||||
|
||||
baobab
|
||||
|
||||
The following picture shows how it should look like when launched in your system.
|
||||
下列图片显示了当它在你的机器运行时长什么样。
|
||||
|
||||
![](http://180016988.r.cdn77.net/wp-content/uploads/2014/02/baobab1.png)
|
||||
|
||||
Scan the Home folder by clicking on **Scan Home** or go to Analyzer and select Scan Home Folder option. The tool will do evrything so wait until the scan is finished and enjoy the results.
|
||||
如需扫描Home目录,点击**Scan Home**或者Analyzer->Scan Home Folder选项。完成扫描后,工具会做很多分析,享受这个分析吧!
|
||||
|
||||
![](http://180016988.r.cdn77.net/wp-content/uploads/2014/02/baobab2.png)
|
||||
|
||||
As you can see from the above picture the baobab’s scan gives me information about the Usage of every folder in Home directory, the size and the number of items it contains. The left side shows the graphical representation as a ring chart. But if you like you can easily change it and switch to treemap chart, by selecting **View as Treemap Chart**.
|
||||
正如上图所见,baobab扫描结果给我们了很多信息,包括Home中每一个文件夹的使用情况,大小,所拥有文件数。右边有一个饼状示意图。如果你喜欢,选择上方的**View as Treemap Chart**,你可以轻松地把它换成树状图。
|
||||
|
||||
The following picture shows an example where I am using the treemap chart representation instead of the default one, the ring chart.
|
||||
下图显示的是,选择树状图代替默认的饼状图的例子。
|
||||
|
||||
![](http://180016988.r.cdn77.net/wp-content/uploads/2014/02/baobab3.png)
|
||||
|
||||
To scan the filesystem go to **Analyzer** and select Scan Filesystem, or if you are lazy like go for the smart way, hit **CTRL+F** on your keyboard.
|
||||
如需扫描文件系统,选择Analyzer->Scan Filesystem,或者如果你是懒汉,还有一个更聪明的办法,快捷键**CTRL+F**。
|
||||
|
||||
Both ways work and do the same job, it is up to you which one you like to use. Shortcuts are very useful, practical and they save alot of time, but it is hard to memorize them all when you don’t use the tool everyday.
|
||||
选择你喜欢的方式,两个方法都会起效并做同样的扫描。快捷键的确易用省时,但是如果不是天天用这个工具,也很难同时记住所有快捷键。
|
||||
|
||||
![](http://180016988.r.cdn77.net/wp-content/uploads/2014/02/baobab4.png)
|
||||
|
||||
Now, how about scanning a folder? It is very easy, go under Analyzer, select Scan A Folder and select the folder you want to scan, or hit **CTRL+O**. Is there an easier way? Yes it is! Can you see the Scan a Folder button? Just click it and the scan on the specified folder will begin.
|
||||
如何扫描文件夹?简单!Analyzer-> Scan A Folder -> 选择你想要扫描的文件夹,快捷键是**CTRL+O**。是不是非常简单?是的!看见Scan a Folder按钮了吗?点击他扫描就开始了!
|
||||
|
||||
The following picture shows the results of my python-nmap-0.1.4 folder scanning. I get very useful information presented in a beautiful and simple way.
|
||||
下图显示了扫描完python-nmap-0.1.4后的结果。得到了一个漂亮有用的信息列表。
|
||||
|
||||
![](http://180016988.r.cdn77.net/wp-content/uploads/2014/02/baobab5.png)
|
||||
|
||||
You learned to scan the Home folder, the Filesystem and Folders. There is a very important feature about this tool that you don’t know yet, but I am sure you will find it yourself. Do you have any remote folder that you want to scan? Think about it.
|
||||
你已经学会了扫描Home目录,文件系统和指定文件夹。这里还有个一个重要的功能,还没有告诉你,但是我确定你一定可以自己找到它。你是不是有远程文件夹需要扫描?发挥脑力吧!
|
||||
|
||||
--------------------------------------------------------------------------------
|
||||
|
||||
via: http://www.unixmen.com/linux-basics-analyze-disk-usage-ubuntu-linux/
|
||||
|
||||
译者:[译者ID](https://github.com/译者ID) 校对:[校对者ID](https://github.com/校对者ID)
|
||||
译者:[Vic___](http://www.vicyu.net) 校对:[校对者ID](https://github.com/校对者ID)
|
||||
|
||||
本文由 [LCTT](https://github.com/LCTT/TranslateProject) 原创翻译,[Linux中国](http://linux.cn/) 荣誉推出
|
||||
|
Loading…
Reference in New Issue
Block a user