mirror of
https://github.com/LCTT/TranslateProject.git
synced 2025-02-03 23:40:14 +08:00
Merge branch 'master' of https://github.com/LCTT/TranslateProject
This commit is contained in:
commit
23b3799849
69
published/7 Tips For Becoming A Linux Terminal Power User.md
Normal file
69
published/7 Tips For Becoming A Linux Terminal Power User.md
Normal file
@ -0,0 +1,69 @@
|
||||
成为 Linux 终端高手的七种武器
|
||||
================================================================================
|
||||
Linux 终端不仅是一个键入命令的地方。如若你能熟谙这些基础技巧,那么你会在绝大多数 Linux 发行版的默认使用的 Bash shell中游刃有余。
|
||||
|
||||
这是howtogeek.com 网站特供给初级用户升级打怪时不能忘记携带的七种武器——
|
||||
|
||||
###1.Tab 补全###
|
||||
|
||||
这样能节省时间,并且对于输入那些你不很确定其具体名称的文件和命令来说很方便。比如,当前目录下有一个名为“really long file name”的文件,你想要删除它。你可以输入完整的文件名,但是你必须确保正确地输入了空格和每个字母。若当前目录下还有许多以字母“r”开头的文件,(如果你没有正确地输入字符) Bash 将不知道你想要删除哪一个文件。
|
||||
|
||||
如果在当前目录下存在着另一个名为“really very long file name”的文件,你敲击了Tab键。Bash
|
||||
将为所有以“r”开头的文件自动补充“really\ ”部分。此时继续敲击Tab键,你将得到匹配所有文件名的列表。
|
||||
|
||||
###2.管道机制###
|
||||
|
||||
这种机制允许你把一条命令的输出传送到另一条命令。按照 UNIX 哲学,每个程序都足够小,只做一件事并将之做到最好。例如,ls命令列出当前目录下的所有文件,grep命令搜索输入其中的指定检索项。
|
||||
|
||||
你可以通过管道机制(|字符)把二者结合起来,在当前目录下搜索文件。以下给出的命令(在当前文件夹下)搜索关键字为“word”的文件:
|
||||
|
||||
ls | grep word
|
||||
|
||||
###3.通配符###
|
||||
|
||||
“*”(星号)字符是一种匹配任意长度字符的通配符。比如,你想删除当前文件夹下名为“really long file name”和“really very long file name”的两个文件,你可以运行以下命令:
|
||||
|
||||
rm really*name
|
||||
|
||||
这条命令会删除所有以“really”开头以“name”结尾的文件。但是,如果你运行的是 rm * 这条命令,你将会删除文件夹下的所有文件。(译注:使用通配符时要小心,尤其是你的rm没有-f确认时!)
|
||||
|
||||
###4.输出重定向###
|
||||
|
||||
“>”字符可以把一条命令的输出重定向到一个文件或另一条命令。比如,下面这行命令执行完 ls 后会列出当前文件夹下的所有文件,其结果不是在终端显示,而是输出到当前文件夹下一个名为“file1”的文件中去:
|
||||
|
||||
ls > file1
|
||||
|
||||
###5.历史记录###
|
||||
|
||||
Bash 能记住你以前输入过的命令,上、下方向键可以逐行调出它们。使用 history 命令打印历史记录,以管道机制 grep 选择性地输出你想要的结果。
|
||||
|
||||
~
|
||||
.
|
||||
..
|
||||
|
||||
“~”,也叫做波浪符,用来表示当前用户的主目录。相比通过 cd /home/name 到达你的主目录,你可以输入 cd ~ 来达到相同效果。这点也可以在相关路径上使用:比如 cd ~/Desktop 能够到达当前用户的 Desktop 目录。
|
||||
|
||||
同样,“.”代表当前目录,“..”代表当前目录的父目录。使用 cd .. 可以返回上一级目录。它们也可以用在相关路径上,举例说明:你当前处在 Desktop 文件夹下,通过 cd ../Documents 命令,你可以转到与 Desktop 共有同一父文件夹的 Documents 文件夹去。
|
||||
|
||||
(译注:“-”代表前一个目录,cd - 可以返回到前一个工作目录。)
|
||||
|
||||
###6.后台命令###
|
||||
|
||||
Bash 默认情况下会在当前终端下执行你键入的每条命令。通常这样是没有问题的,但是如果你想要在启动某个应用后继续使用终端呢?通过输入 firefox 启动火狐浏览器,你的终端将被错误提示等各种信息输出占据,直到你关闭火狐浏览器为止。在 Bash 中你可以通过在命令结尾添加“&”操作符来后台执行程序。
|
||||
|
||||
firefox &
|
||||
|
||||
###7.条件执行###
|
||||
|
||||
Bash 也可以连续执行两条命令。 第二条命令仅在第一条命令成功执行后才会开始执行。如要如此,你可以通过键入“&&”,也就是两个“&”字符进行分隔,在同一行输入两条命令。下面给出的命令会在等待 5 秒后运行 gnome-screenshot 工具:
|
||||
|
||||
sleep 5 && gnome-screenshot
|
||||
|
||||
--------------------------------------------------------------------------------
|
||||
|
||||
via: http://www.efytimes.com/e1/fullnews.asp?edid=123564
|
||||
|
||||
译者:[SteveArcher](https://github.com/SteveArcher) 校对:[wxy](https://github.com/wxy)
|
||||
|
||||
本文由 [LCTT](https://github.com/LCTT/TranslateProject) 原创翻译,[Linux中国](http://linux.cn/) 荣誉推出
|
||||
|
@ -4,9 +4,9 @@ Ubuntu 是一个功能强大的现代化操作系统,并且它还允许你使
|
||||
|
||||
在安装语言包之后,你可以根据你的语言重命名标准文件夹,例如音乐、图片和文档。你必须注销系统然后重新登录来使变更生效。当你重新登录之后,你会看到一个弹窗并且询问你是否愿意重命名这些标准文件夹,从而使得文件名满足你的所选择的语言要求。
|
||||
|
||||
要想更改 Ubuntu 的使用语言,单击菜单栏右上角的 **gear**,并且选择 **System Settings**。在打开 System Settings 之后,选择 **Language Support**。
|
||||
要想更改 Ubuntu 的使用语言,单击菜单栏右上角的 **齿轮**,并且选择 **System Settings(系统设置)**。在打开 System Settings(系统设置) 之后,选择 **Language Support(语言支持)**。
|
||||
|
||||
如果提示要你安装额外的语言支持,那就直接安装。如果没有,那么就单击 Install / Remove 去安装新的语言包,然后,选择你想安装的语言来安装。最后,拖动新的语言到列表的顶端并且保存。这些更改只会应用在你的个人帐号上。如果你想应用在全局范围内,单击 **Apply System-Wide** 。
|
||||
如果提示要你安装额外的语言支持,那就直接安装。如果没有,那么就单击 Install / Remove (安装/删除)去安装新的语言包,然后,选择你想安装的语言来安装。最后,拖动新的语言到列表的顶端并且保存。这些更改只会应用在你的个人帐号上。如果你想应用在全局范围内,单击 **Apply System-Wide(应用到全局设置)** 。
|
||||
|
||||
![](http://www.liberiangeek.net/wp-content/uploads/2013/10/language-ubuntu.png)
|
||||
|
@ -1,24 +1,25 @@
|
||||
Unvanquished 可能成为Linux上最好的免费多人游戏
|
||||
Unvanquished 可能会是Linux上最好的免费多人游戏
|
||||
================================================================================
|
||||
**Unvanquished,一款免费的、开源的并将实时策略元素和未来科幻设定相结合的第一人称视角的射击游戏,已经收到了它的第22次更新。事实上,版本是22.1,但是是谁在计数呢?**
|
||||
**Unvanquished,一款免费的、开源的并将实时策略元素和未来科幻设定相结合的第一人称视角的射击游戏,已经发布了它的第22次更新。事实上,版本号是22.1。**
|
||||
|
||||
![](http://i1-news.softpedia-static.com/images/news2/Unvanquished-Will-Probably-Be-the-Best-Free-Multiplayer-Game-on-Linux-405956-2.jpg)
|
||||
|
||||
![](http://www.unvanquished.net/images/20131202-snowstation.jpg)
|
||||
|
||||
即便Unvanquished仍处在内部测试阶段,但开发者们已经添加了很多新特性,使得这款游戏的可玩性更强。
|
||||
|
||||
Unvanquished的内部测试版22. 1已经接受了一些改变。包括引擎,游戏设置,一个新地图,一个已有地图的新版本,
|
||||
Unvanquished的内部测试版22. 1已经发布了一些改变。包括引擎,游戏设置,一个新地图,一个已有地图的新版本,
|
||||
还有更多。
|
||||
|
||||
![](http://www.unvanquished.net/images/20131202-snowstation.jpg)
|
||||
|
||||
Snowstation是集成在这款游戏中的新地图。据开发者透露,它拥有一个简单的设计,必要的环路和用来形成这个环路的一部分的雪地场景。
|
||||
|
||||
公告里写道:“我们使用C++编写所有的引擎代码。一些地方变得有点不同——一些指令被略微更改或重命名,一些输出看起来不同。你可能会注意到在进行标记结构时,需要重新绑定关键字。原因是/if已经失去修改关键字的支持,你需要使用/modcase代替”。
|
||||
|
||||
### Unvanquished Alpha 22.1的亮点:###
|
||||
|
||||
• 喷气机已经被加入。玩家必须按住跳跃键然后飞翔 - 但你不能一直翱翔,你只有有限的燃料;
|
||||
• 被报告的“受到攻击”消息的原因已经被改变;
|
||||
• 加入了喷气引擎。玩家必须按住跳跃键然后飞翔 - 但你不能一直翱翔,你只有有限的燃料;
|
||||
• 报告“受到攻击”消息的原因已经被改变;
|
||||
• 当接近合适的建筑时,人类的武器将被自动填充或充电,而不是使用;
|
||||
• 中继器现在是有效的小型反应堆,当周围没有反应堆时,它们能提供能量;
|
||||
• 在OpenGL 2.1的环境中FXAA和Mesa一起工作。
|
||||
@ -29,11 +30,12 @@ Snowstation是集成在这款游戏中的新地图。据开发者透露,它拥
|
||||
|
||||
- [Debian/Ubuntu DEB ALL][2][ubuntu_deb] [0 KB]
|
||||
- [Arch Linux package][2][binary] [0 KB]
|
||||
|
||||
--------------------------------------------------------------------------------
|
||||
|
||||
via: http://news.softpedia.com/news/Unvanquished-Will-Probably-Be-the-Best-Free-Multiplayer-Game-on-Linux-405956.shtml
|
||||
|
||||
译者:[KayGuoWhu](https://github.com/KayGuowhu) 校对:[校对者ID](https://github.com/校对者ID)
|
||||
译者:[KayGuoWhu](https://github.com/KayGuowhu) 校对:[wxy](https://github.com/wxy)
|
||||
|
||||
本文由 [LCTT](https://github.com/LCTT/TranslateProject) 原创翻译,[Linux中国](http://linux.cn/) 荣誉推出
|
||||
|
@ -1,3 +1,4 @@
|
||||
[bazz2 咩哈哈哈哈哈]
|
||||
15 Basic MySQL Interview Questions for Database Administrators
|
||||
================================================================================
|
||||
Prior to This Article, three articles has already been published in ‘[Linux Interview][1]‘ Section and all of them were highly appreciated by our notable readers, however we were receiving feedback to make this interactive learning process, section-wise. From idea to action, we are providing you **15 MySQL Interview Questions**.
|
||||
|
@ -1,4 +1,5 @@
|
||||
translating by zsJacky
|
||||
小眼儿继续翻译中~
|
||||
|
||||
GNOME’s File Manager Will Be More User Friendly
|
||||
================================================================================
|
||||
@ -41,4 +42,4 @@ via: http://news.softpedia.com/news/GNOME-s-File-Manager-Will-Be-More-User-Frien
|
||||
|
||||
本文由 [LCTT](https://github.com/LCTT/TranslateProject) 原创翻译,[Linux中国](http://linux.cn/) 荣誉推出
|
||||
|
||||
[1]:http://afaikblog.wordpress.com/2013/12/11/nautilus-next/
|
||||
[1]:http://afaikblog.wordpress.com/2013/12/11/nautilus-next/
|
||||
|
@ -1,3 +1,4 @@
|
||||
translating by pandachow
|
||||
How to Install SteamOS in VirtualBox
|
||||
================================================================================
|
||||
**The following tutorial will teach all Linux users how to install Valve's brand new SteamOS GNU/Linux operating system in a virtual machine, using the powerful and popular VirtualBox software.**
|
||||
@ -80,4 +81,4 @@ via: http://news.softpedia.com/news/How-to-Install-SteamOS-in-VirtualBox-409363.
|
||||
|
||||
[1]:http://news.softpedia.com/news/Download-SteamOS-1-0-Based-on-Debian-Linux-409214.shtml
|
||||
[2]:http://linux.softpedia.com/get/Programming/Libraries/GNU-xorriso-36759.shtml
|
||||
[3]:http://linux.softpedia.com/get/System/Operating-Systems/Linux-Distributions/SteamOS-103040.shtml
|
||||
[3]:http://linux.softpedia.com/get/System/Operating-Systems/Linux-Distributions/SteamOS-103040.shtml
|
||||
|
@ -1,3 +1,4 @@
|
||||
[marked stduolc]
|
||||
Linux iostat Command to Report CPU Statistics and I/O Statistics
|
||||
================================================================================
|
||||
A Central Processing Unit or CPU is the brain of the computer. All of processing command is run here. Input / Ouput or I/O also play critical roles. The disks is used to provide data to processor and keeps the data which has been processed by CPU. One of the methods for measuring processor utilization and I/O utilization is to use **iostat** command. From its utilization we can decide do we need to add more resources or not.
|
||||
@ -107,4 +108,4 @@ via: http://linoxide.com/linux-command/linux-iostat-command/
|
||||
|
||||
本文由 [LCTT](https://github.com/LCTT/TranslateProject) 原创翻译,[Linux中国](http://linux.cn/) 荣誉推出
|
||||
|
||||
[1]:http://linoxide.com/linux-command/linux-vmstat-command-tool-report-virtual-memory-statistics/
|
||||
[1]:http://linoxide.com/linux-command/linux-vmstat-command-tool-report-virtual-memory-statistics/
|
||||
|
@ -1,106 +0,0 @@
|
||||
Linux vmstat Command – Tool to Report Virtual Memory Statistics
|
||||
================================================================================
|
||||
As we already know that computer must have memory which called RAM to make the computer works. RAM is refer to a physical memory that planted into the computer mainboard. This RAM is used to load applications such as browser, word processor and so on. So actually, programs that you are using are running on the memory.
|
||||
|
||||
Let say you have 2 GB of memory. When you are running an operating system, it may that your available memory is only 1,5 GB. Then you actively using a lot of applications. When the usage of the memory is full, you can load more applications anymore. In plain English, the computer may say “Sorry, you can not run more applications, please close some programs if you would like to run more applications”
|
||||
|
||||
To solve this problem, operating system including Linux use a method named Virtual Memory. This method will search the area of memory which not used recently by any applications, then copy it into computer harddisk. This can give some free memory area and give you chance to run more applications.
|
||||
|
||||
To monitor this virtual memory activities, we can use **vmstat** tool.
|
||||
|
||||
### What is vmstat ###
|
||||
|
||||
Vmstat is a tool that provide reporting virtual memory statistics. It covers system’s memory, swap and processors utilizations in real time.
|
||||
|
||||
### How to run vmstat ###
|
||||
|
||||
Same with [mpstat][1], vmstat is included inside sysstat package. If you don’t have it, please install sysstat package.
|
||||
|
||||
To run vmstat, just type vmstat in your console. Running vmstat without parameter will show you a default result of vmstat.
|
||||
|
||||
![](http://linoxide.com/wp-content/uploads/2013/12/vmstat_default.png)
|
||||
|
||||
Let’s see how to read the information provided by vmstat :
|
||||
|
||||
### Procs ###
|
||||
|
||||
Procs have **r** column and **b** column. **r** columns means the total number of processes that waiting access fot the processor. While b column means the total no processes in a sleep state. Below those columns, there are values. From the above screenshot, we have 2 processes that waiting access to the processor and 0 for sleep processes.
|
||||
|
||||
### Memory ###
|
||||
|
||||
Memory have **swpd, free, buff** and **cache** columns. This information is the same with **free -m** command. The **swpd column** show you about how much memory has been swapped to a swap file or disk. The **free column** show you the unallocated memory available. **Buff column** means how much in use memory. And **cache column** show you about how much memory that can be swapped into swap file or disk if there are some application is needed by them.
|
||||
|
||||
### Swap ###
|
||||
|
||||
Swap show us how much memory is sent or retrieved from the swap system. The **si** column tell us how much memory is moved **from swap to real memory** per second. The so column tell us how much memory that is moved **from real memory to swap**.
|
||||
|
||||
### I/O ###
|
||||
|
||||
The **io** show us the amount of input and output activity per second in terms of blocks read and blocks written. The **bi** column tell us about the number of blocks received and the **bo** tell us about the number of blocks sent.
|
||||
|
||||
### System ###
|
||||
|
||||
System show us the number of system operations per second. The **in** column tell us about the number system interrupts per second. The **cs** column tell us the number of context switches that the system makes in order to process all tasks.
|
||||
|
||||
### CPU ###
|
||||
|
||||
CPU show us the use of CPU’s resources. The **us column** tell us how much time that processor spends on non-kernel processes. The **sy column** tell us about how much time that processor spends on kernel related tasks. The **id column** tell us about how long the processor are idle. The **wa column** tell us how much time that the processor has been waiting for I/O operations to complete before being able to continue processing tasks.
|
||||
|
||||
### Using vmstat with delay ###
|
||||
|
||||
As a tool for statistics, the best way of using vmstat is using a **delay**. So you can capture the activity periodically. Let say we want to run vmstat with 5 second delay. Just type **vmstat 5** on your console to do it.
|
||||
|
||||
![](http://linoxide.com/wp-content/uploads/2013/12/vmstat_delay_5.png)
|
||||
|
||||
The command will run every 5 seconds **until** you press Ctrl-C to stop it.
|
||||
You can use **count** to limit how many times vmstat will running.
|
||||
|
||||
![](http://linoxide.com/wp-content/uploads/2013/12/vmstat_count_7.png)
|
||||
|
||||
The above command will run **vmstat with 5 seconds delay for 7 times**.
|
||||
|
||||
### Show active and inactive memory ###
|
||||
|
||||
To do it, you can add **-a** parameter to vmstat. Here’s a sample.
|
||||
|
||||
![](http://linoxide.com/wp-content/uploads/2013/12/vmstat_a.png)
|
||||
|
||||
### Show summarize disk statistics ###
|
||||
|
||||
vmstat can print your system disk statistics if you want. Use **-D** parameter to print it.
|
||||
|
||||
![](http://linoxide.com/wp-content/uploads/2013/12/vmstat_disk_sum.png)
|
||||
|
||||
### Show display unit ###
|
||||
|
||||
You can choose what unit character you want to print. Use **-S followed by k (1000), K (1024), m (1000000), M (1048576)** bytes. If you don’t choose the unit, vmstat will use K (1024).
|
||||
|
||||
![](http://linoxide.com/wp-content/uploads/2013/12/vmstat_define_unit.png)
|
||||
|
||||
### Print detail statistics for specific partition ###
|
||||
|
||||
To do it, you can use **-p parameter followed by device name**. Here’s an example of it.
|
||||
|
||||
![](http://linoxide.com/wp-content/uploads/2013/12/vmstat_partition.png)
|
||||
|
||||
### Files ###
|
||||
|
||||
vmstat is using these files to works.
|
||||
|
||||
/proc/meminfo
|
||||
/proc/stat
|
||||
/proc/*/stat
|
||||
|
||||
### Conclusion ###
|
||||
|
||||
If you feel your system is running out memory, before you add some physical memory, this tool can help you to determine the root cause of the problem. As usual, you can explore more detail about vmstat command by typing **man vmstat** on your console. It will bring you to vmstat manual page.
|
||||
|
||||
--------------------------------------------------------------------------------
|
||||
|
||||
via: http://linoxide.com/linux-command/linux-vmstat-command-tool-report-virtual-memory-statistics/
|
||||
|
||||
译者:[译者ID](https://github.com/译者ID) 校对:[校对者ID](https://github.com/校对者ID)
|
||||
|
||||
本文由 [LCTT](https://github.com/LCTT/TranslateProject) 原创翻译,[Linux中国](http://linux.cn/) 荣誉推出
|
||||
|
||||
[1]:http://linoxide.com/linux-command/linux-mpstat-command/
|
@ -1,114 +0,0 @@
|
||||
27 The Linux Kernel: Configuring the Kernel Part 23
|
||||
================================================================================
|
||||
![](http://www.linux.org/attachments/slide-jpg.735/)
|
||||
|
||||
Aloha and welcome to the next kernel configuration article! In this article, we will configure the Cryptographic API, Virtualization, and Library Routines. Cryptography refers to encryption and secure communication between desired computers. Users may encrypt data to ensure only the recipient reads the data instead of hackers that may obtain the data.
|
||||
|
||||
The Linux kernel requires the "Cryptographic algorithm manager" to be enabled in the kernel. This feature provides the software needed to operate the cryptographic abilities of the kernel.
|
||||
|
||||
The userspace can configure the cryptography features when this driver is enabled (Userspace cryptographic algorithm configuration). NOTE: This configuration is referring to the cryptographic setup during kernel runtime, not the tool for making the kernel.
|
||||
|
||||
To enhance performance, enable this feature which stops self-tests on cryptographic algorithms (Disable run-time self tests).
|
||||
|
||||
The "GF(2^128) multiplication functions" is a specific algorithm used by some ciphers. GF stands for Galois field and is a set of finite numbers. These sets are called fields and they come in a variety of sizes.
|
||||
|
||||
"Null algorithms" are algorithms used in IPsec. Null encryption means no encryption, so this driver allows IPsec to use no encryption.
|
||||
|
||||
Arbitrary algorithms can be converted to parallel algorithms (Parallel crypto engine). This feature provides that converter.
|
||||
|
||||
Arbitrary algorithms can also be converted to asynchronous algorithms (Software async crypto daemon).
|
||||
|
||||
"Authenc support" is needed by IPsec. Authenc support stands for Authenticated Encryption and offers multiple encryptions to IPsec.
|
||||
|
||||
CCM stands for "Counter with CBC MAC" and is needed by IPsec (CCM support).
|
||||
|
||||
This driver offers "GCM/GMAC support". GCM is "Galois/Counter Mode" and GMAC is "Galois Message Authentication Code".
|
||||
|
||||
NOTE: I will not be able to explain specifically the use and details of some of these features. Cryptography is a detail field of computers and explaining cryptography is beyond the scope of this article.
|
||||
|
||||
The "Sequence Number IV Generator" is a special number generator used by some cryptography software.
|
||||
|
||||
The Linux kernel supports various cipher algorithms (CBC support), (CTR support), (CTS support), (ECB support), (LRW support), (PCBC support), (XTS support), (HMAC support), (XCBC support), and (VMAC support).
|
||||
|
||||
The "CRC32c CRC algorithm" is used specifically with SPARC64 processors.
|
||||
|
||||
"CRC32c INTEL hardware acceleration" is another processor specific algorithm. It works on Intel processors with SSE4.2.
|
||||
|
||||
The kernel also offers many digests, ciphers, and other cryptographic software. Generally, allow the defaults unless you have a specific reason for enabling or disabling features.
|
||||
|
||||
NOTE: A digest (like MD5) generates a hash (sequence of characters) based on a file. Hashes are then used to check files. For example, if you download the Ubuntu installation ISO file from Canonical's website, you may want to know if the file on your hard-drive is an exact replica of the server's file. Users do this because the ISO may become corrupted during the long download. The hash is used to prove that the file is unchanged.
|
||||
|
||||
NOTE: A cipher is an encryption/decryption algorithm. Encryption is the process of making a file unreadable to anyone other than the intended recipients/owners. Decryption is the process used to view an encrypted file.
|
||||
|
||||
The Linux kernel also supports various compression algorithms that users are strongly recommended to enable (Deflate compression algorithm), (Zlib compression algorithm), and (LZO compression algorithm).
|
||||
|
||||
The kernel can generate random numbers which are needed for cryptographic software (Pseudo Random Number Generation for Cryptographic modules), (User-space interface for hash algorithms), and (User-space interface for symmetric key cipher algorithms).
|
||||
|
||||
"Hardware crypto devices" is a sub-menu that contains a list of drivers for hardware-based cryptography tools. This is hardware that has the algorithms in the firmware.
|
||||
|
||||
Various drivers for asymmetric public-keys exist in the "Asymmetric (public-key cryptographic) key type" menu.
|
||||
|
||||
Now, we can move on to the next entry on the main menu of the configuration tool (on menu-based interfaces). Virtualization is the ability to host an operating system. This means Linux (and other systems) can run another operating system as if the guest system is an application.
|
||||
|
||||
"Kernel-based Virtual Machine (KVM) support" allows the kernel itself to manage the guest system. Computers with Intel processors need this driver (KVM for Intel processors support) and AMD processors need (KVM for AMD processors support).
|
||||
|
||||
The memory management unit (MMU) for the Kernel Virtual Machine (KVM) can have an auditing system.
|
||||
|
||||
The guest's network can become faster with this feature enabled (Host kernel accelerator for virtio net).
|
||||
|
||||
After configuring the virtual machine abilities for the kernel, the last menu on the main screen of the configuration tool (when using a menu interface) is the last portion of the kernel to configure. This menu is for the "Library Routines", also called library functions. Parts of the kernel can be used as a linkable library. For example, XZ filters (compression algorithms) can be accessed by external programs. The different libraries are listed below.
|
||||
|
||||
NOTE: The CRC functions are mostly the same but with different features or performance. Generally, it is best to allow the defaults.
|
||||
|
||||
CRC-CCITT functions - The Cyclic Redundancy Check function tests for changes in raw data
|
||||
|
||||
CRC16 functions - The Cyclic Redundancy Check function tests for changes in raw data
|
||||
|
||||
CRC calculation for the T10 Data Integrity Field - The Cyclic Redundancy Check function tests for changes in raw data
|
||||
|
||||
CRC ITU-T V.41 functions - The Cyclic Redundancy Check function tests for changes in raw data
|
||||
|
||||
CRC32/CRC32c functions - The Cyclic Redundancy Check function tests for changes in raw data
|
||||
|
||||
CRC32 perform self test on init - The Cyclic Redundancy Check function tests for changes in raw data
|
||||
|
||||
CRC32 implementation (Slice by 8 bytes) - The Cyclic Redundancy Check function tests for changes in raw data
|
||||
|
||||
CRC7 functions - The Cyclic Redundancy Check function tests for changes in raw data
|
||||
|
||||
CRC32c (Castagnoli, et al) Cyclic Redundancy-Check - The Cyclic Redundancy Check function tests for changes in raw data
|
||||
|
||||
CRC8 function - The Cyclic Redundancy Check function tests for changes in raw data
|
||||
|
||||
* BCJ filter decoder - XZ decoder design for a specific processor where "*" is the processor. The kernel lists a few different architectures.
|
||||
|
||||
XZ decompressor tester - Debug functions for testing the XZ decoder
|
||||
|
||||
Averaging functions - Load average as seen in the output of "uptime"
|
||||
|
||||
CORDIC algorithm - hyperbolic and trigonometry functions
|
||||
|
||||
|
||||
JEDEC DDR data - JEDEC Double Data Rate SD-RAM specification
|
||||
|
||||
|
||||
Guess what? You have finished configuring your kernel. I am sure after twenty-three articles, this is how you feel -
|
||||
|
||||
Video link:[http://www.youtube.com/embed/barWV7RWkq0?wmode=opaque][1]
|
||||
|
||||
Next, we can compile and install.
|
||||
|
||||
In the far distance, I still hear this -
|
||||
|
||||
Video link:[http://www.youtube.com/embed/ELoUppY1esw?wmode=opaque][2]
|
||||
|
||||
--------------------------------------------------------------------------------
|
||||
|
||||
via: http://www.linux.org/threads/the-linux-kernel-configuring-the-kernel-part-23.5112/
|
||||
|
||||
译者:[译者ID](https://github.com/译者ID) 校对:[校对者ID](https://github.com/校对者ID)
|
||||
|
||||
本文由 [LCTT](https://github.com/LCTT/TranslateProject) 原创翻译,[Linux中国](http://linux.cn/) 荣誉推出
|
||||
|
||||
[1]:http://www.youtube.com/embed/barWV7RWkq0?wmode=opaque
|
||||
[2]:http://www.youtube.com/embed/ELoUppY1esw?wmode=opaque
|
@ -1,11 +1,11 @@
|
||||
示例说明10个Linux中有用打的链接操作符
|
||||
示例说明10个Linux中常用又好用的链接操作符
|
||||
================================================================================
|
||||
Linux命令中的链接的意思是,结合几个命令并基于它们之间操作符的行为执行。Linux中的链接命令,有些像你在shell中写[短小的shell脚本],并直接在终端中执行。链接使得自动处理变得可能。不仅如此,一个无人看管的机器在链接操作符的帮助下如此有条理地运行。
|
||||
Linux命令中的链接的意思是,通过操作符的行为将几个命令组合执行。Linux中的链接命令,有些像你在shell中写[短小的shell脚本][1],并直接在终端中执行。链接使得自动处理变得可能。不仅如此,一个无人看管的机器在链接操作符的帮助下能够十分有条理地运行。
|
||||
|
||||
![Linux中的10个链接操作符](http://www.tecmint.com/wp-content/uploads/2013/12/Chaining-Operators-in-Linux.png)
|
||||
*Linux中的10个链接操作符*
|
||||
|
||||
本文旨在常用的**链接操作符**,并作简短的描述和相关的肯定能提高你生产力的例子,除了有时能降低系统负载外还能让你写出简短有意义的代码。
|
||||
本文旨在介绍一些常用的**链接操作符**,通过简短的描述和相关的例子帮助读者提高生产力、降低系统负载、写出更加简短有意义的代码。
|
||||
|
||||
### 1. 和号操作符 (&) ###
|
||||
|
||||
@ -25,13 +25,13 @@ Linux命令中的链接的意思是,结合几个命令并基于它们之间操
|
||||
|
||||
root@localhost:/home/tecmint# apt-get update ; apt-get upgrade ; mkdir test
|
||||
|
||||
创建了一个‘**test**‘文件夹
|
||||
上述命令先后执行了update和upgrade,最后在当前工作目录下创建了一个‘**test**‘文件夹
|
||||
|
||||
### 3. 与操作符 (&&) ###
|
||||
|
||||
如果第一个命令执行成功(译者注: 原文为“if the execution of first command fails”,译者认为与上下文意思不同),**与操作符 (&&)**会执行第二个命令,也就是说,第一个命令退出状态是**1**。这个命令在检查最后一个命令的执行状态时很有用。
|
||||
如果第一个命令执行成功,**与操作符 (&&)**会执行第二个命令,也就是说,第一个命令退出状态是**0**。(译注:原文的这里明显写错了,我们进行了改译,有兴趣的读者可以参看原文以及原文下面的评论)。这个命令在检查最后一个命令的执行状态时很有用。
|
||||
|
||||
比如,我想使用**[links command][2]**在终端中访问网站**tecmint.com**,但在这之前我需要检查主机是否**在线**或者**不在线**。
|
||||
比如,我想使用**[links command][2]**在终端中访问网站**tecmint.com**,但在这之前我需要检查主机是否**在线**或**不在线**。
|
||||
|
||||
root@localhost:/home/tecmint# ping -c3 www.tecmint.com && links www.tecmint.com
|
||||
|
||||
@ -43,7 +43,7 @@ Linux命令中的链接的意思是,结合几个命令并基于它们之间操
|
||||
|
||||
tecmint@localhost:~$ apt-get update || links tecmint.com
|
||||
|
||||
上面的命令中,由于**用户**不允许**更新**系统,这意味着第一个命令的退出状态是’**1**′,因此最后一个命令‘**links tecmint.com**‘会执行。
|
||||
上面的命令中,由于该**用户**不允许**更新**系统,这意味着第一个命令的退出状态是’**1**′,因此最后一个命令‘**links tecmint.com**‘会执行。
|
||||
|
||||
如果第一个命令成功执行并且退出状态是‘**0**‘呢?很明显的,第二个命令不会执行。
|
||||
|
||||
@ -82,7 +82,7 @@ Linux命令中的链接的意思是,结合几个命令并基于它们之间操
|
||||
|
||||
上面的操作符实际上是‘**与**‘和‘**或**‘操作符的组合。它很像‘**if-else**‘语句。
|
||||
|
||||
比如,让我们ping **tecmint.com**,如果成功打印‘**已验证**‘,否则打印‘**主机故障**‘。
|
||||
比如,我们ping **tecmint.com**,如果成功打印‘**已验证**‘,否则打印‘**主机故障**‘。
|
||||
|
||||
tecmint@localhost:~/tecmint$ ping -c3 www.tecmint.com && echo "Verified" || echo "Host Down"
|
||||
|
||||
@ -109,7 +109,7 @@ Linux命令中的链接的意思是,结合几个命令并基于它们之间操
|
||||
|
||||
### 7. 管道操作符 (|) ###
|
||||
|
||||
**PIPE**在第一个命令的输出作为第二个命令的输入时很有用。比如,‘**ls -l**‘的输出通过管道到‘**less**‘,并看一下输出。
|
||||
**PIPE**在将第一个命令的输出作为第二个命令的输入时很有用。比如,‘**ls -l**‘的输出通过管道到‘**less**‘,并看一下输出。
|
||||
|
||||
tecmint@localhost:~$ ls -l | less
|
||||
|
||||
@ -125,23 +125,27 @@ Linux命令中的链接的意思是,结合几个命令并基于它们之间操
|
||||
|
||||
“The file does not exist”
|
||||
|
||||
(LCTT注:原文这里应该也是复制或书写的时候,出现了一些问题,例子中并没有出现小标题中的"{}"操作符,这里我们原文翻译了,关于这里,有兴趣的同学请在评论中和我们交流~)
|
||||
|
||||
### 9. 优先操作符 () ###
|
||||
|
||||
这个操作符可以让命令以优先顺序执行。
|
||||
|
||||
Command_x1 &&Command_x2 || Command_x3 && Command_x4.
|
||||
|
||||
在上面的伪代码中,如果**Command_x1**执行失败了会怎么样,**Command_x2**, **Command_x3**, **Command_x4**没有一个会自行,对于这种,我们使用**优先操作符**。
|
||||
在上面的伪代码中,如果**Command_x1**执行失败了会怎么样,**Command_x2**, **Command_x3**, **Command_x4**没有一个会执行,对于这种情况,我们使用**优先操作符**。
|
||||
|
||||
(Command_x1 &&Command_x2) || (Command_x3 && Command_x4)
|
||||
|
||||
在上面的伪代码中,如果**Command_x1**执行失败,**Command_x2**同样失败,但是**Command_x3**会继续执行, **Command_x4**会依赖于 **Command_x3**的退出状态。
|
||||
在上面的伪代码中,如果**Command_x1**执行失败,**Command_x2**不会执行,但是**Command_x3**会继续执行, **Command_x4**会依赖于 **Command_x3**的退出状态。
|
||||
|
||||
### 10. 连接符 (\) ###
|
||||
|
||||
**连接符 (\)**如它名字所说,被用于连接shell中跨越多行的命令。比如,下面的命令会打开文本文件**test(1).txt**。
|
||||
|
||||
tecmint@localhost:~/Downloads$ nano test\(1\).txt
|
||||
tecmint@localhost:~/Downloads$ nano test\
|
||||
(1\
|
||||
).txt
|
||||
|
||||
今天就到这里,我会近日开始另外一个有趣的文章。不要走开,继续关注**Tecmint**。不要忘记在评论栏里提出有价值的反馈。
|
||||
|
||||
@ -149,10 +153,10 @@ Linux命令中的链接的意思是,结合几个命令并基于它们之间操
|
||||
|
||||
via: http://www.tecmint.com/chaining-operators-in-linux-with-practical-examples/
|
||||
|
||||
译者:[geekpi](https://github.com/geekpi) 校对:[校对者ID](https://github.com/校对者ID)
|
||||
译者:[geekpi](https://github.com/geekpi) 校对:[Mr小眼儿](http://blog.csdn.net/tinyeyeser)
|
||||
|
||||
本文由 [LCTT](https://github.com/LCTT/TranslateProject) 原创翻译,[Linux中国](http://linux.cn/) 荣誉推出
|
||||
|
||||
[1]:http://www.tecmint.com/category/bash-shell/
|
||||
[2]:http://www.tecmint.com/command-line-web-browsers/
|
||||
[3]:http://www.tecmint.com/15-basic-ls-command-examples-in-linux/
|
||||
[3]:http://www.tecmint.com/15-basic-ls-command-examples-in-linux/
|
||||
|
@ -1,63 +0,0 @@
|
||||
成为 Linux 终端高手的 7 个基本点
|
||||
================================================================================
|
||||
Linux 终端不仅是一个键入命令的地方。如若你能熟谙基本操作,那么你将掌握绝大多数 Linux 发行版的默认配置 Bash shell。
|
||||
|
||||
howtogeek.com 对初级用户,以及那些学习过程中或多或少有一些遗漏的高级用户提出几个基本点——
|
||||
|
||||
**1.Tab 补全** – 这样能节省时间,并且对于输入那些你不确定其具体名称的文件和命令来说很方便。比如,当前目录下有一个名为“really long file name”的文件,你想要删除它。你可以输入完整的文件名,但是你必须确保正确地输入了空格。若当前目录下还有许多以字母“r”开头的文件,(如果你没有正确地输入空格) Bash 将不知道你想要删除哪一个文件。
|
||||
|
||||
如果在当前目录下存在着另一个名为“really very long file name”的文件,你敲击了Tab键。Bash
|
||||
将为所有以“r”开头的文件自动填充“really\”部分。此时继续敲击Tab键,你将得到匹配所有文件名的列表。
|
||||
|
||||
**2.管道机制** – 这种机制允许你把一条命令的输出传送到另一条命令。按照 UNIX 哲学,每个程序都足够小,只做一件事并将之做到最好。例如,ls命令列出当前目录下的所有文件,grep命令搜索输入其中的指定检索项。
|
||||
|
||||
你可以通过管道机制(|字符)把二者结合起来,在当前目录下搜索文件。以下给出的命令(在当前文件夹下)搜索关键字为“word”的文件:
|
||||
|
||||
ls | grep word
|
||||
|
||||
**3.通配符** – “*”(星号)字符是一种匹配任意长度字符的通配符。比如,你想删除当前文件夹下名为“really long file name”和“really very long file name”的文件,你可以运行以下命令:
|
||||
|
||||
rm really*name
|
||||
|
||||
这条命令会删除所有以“really”开头以“name”结尾的文件。但是,如果你运行的是 rm * 这条命令,你将会删除文件夹下的所有文件。
|
||||
|
||||
**4.输出重定向** – “>”字符可以把一条命令的输出重定向到一个文件或另一条命令。比如,下面这行命令执行完 ls 后会列出当前文件夹下的所有文件,其结果不是在终端显示,而是输出到当前文件夹下一个名为“file1”的文件中去:
|
||||
|
||||
ls > file1
|
||||
|
||||
**5.历史记录** – Bash 能记住你以前输入过的命令,上、下方向键可以逐行调出它们。使用 history 命令打印历史记录,以管道机制 grep 选择性地输出你想要的结果。
|
||||
|
||||
~, . & ..
|
||||
|
||||
“~”,也叫做波浪符,用来表示当前用户的主目录。相比通过 cd /home/name 到达你的主目录,你可以输入 cd ~ 来达到相同效果。这点也可以在相关路径上使用 – 比如 cd ~/Desktop 能够到达当前用户的 Desktop 目录。
|
||||
|
||||
同样,“.”代表当前目录,“..”代表当前目录的父目录。使用 cd .. 可以返回上一级目录。它们也可以用在相关路径上,举例说明:你当前处在 Desktop 文件夹下,通过 cd ../Documents 命令,你可以转到与 Desktop 共有同一父文件夹的 Documents 文件夹去。
|
||||
|
||||
**6.后台命令** – Bash 默认会在当前终端执行你键入的每条命令。通常没有问题,但是如果你想要在启动应用后继续使用终端呢?通过输入 firefox 启动火狐浏览器,你的终端将被错误提示等各种信息输出占据,直到你关闭火狐浏览器为止。在 Bash 中你可以通过在命令结尾添加“&”操作符来后台执行程序。
|
||||
|
||||
firefox &
|
||||
|
||||
**7.条件执行** – Bash 也可以连续执行两条命令。 第二条命令仅在第一条命令成功执行后才会开始执行。如若如此,你可以通过键入“&&”,也就是两个与字符进行分隔,在同一行输入两条命令。下面给出的命令会在等待 5 秒后运行 gnome-screenshot 工具:
|
||||
|
||||
sleep 5 && gnome-screenshot
|
||||
|
||||
--------------------------------------------------------------------------------
|
||||
|
||||
via: http://www.efytimes.com/e1/fullnews.asp?edid=123564
|
||||
|
||||
译者:[SteveArcher](https://github.com/SteveArcher) 校对:[校对者ID](https://github.com/校对者ID)
|
||||
|
||||
本文由 [LCTT](https://github.com/LCTT/TranslateProject) 原创翻译,[Linux中国](http://linux.cn/) 荣誉推出
|
||||
|
||||
[1]:
|
||||
[2]:
|
||||
[3]:
|
||||
[4]:
|
||||
[5]:
|
||||
[6]:
|
||||
[7]:
|
||||
[8]:
|
||||
[9]:
|
||||
[10]:
|
||||
[11]:
|
||||
[12]:
|
@ -2,39 +2,39 @@ CentOS 6.5 桌面版安装教程附带大量截图
|
||||
================================================================================
|
||||
### CentOS 6.5 新版本发布 ###
|
||||
|
||||
随着RHEL 6.5新版本的发布,[CentOS 6.5][1]在12月1号准时跟上。现在是时间来玩弄它了。对于那些想要从已经安装好的6.4系统升级到6.5只要简单的使用* yum update *命令然后就是见证奇迹的时刻。
|
||||
随着RHEL 6.5新版本的发布,[CentOS 6.5][1]在12月1号准时跟上。现在是时间来玩弄它了。如果想要从已经安装好的6.4系统升级到6.5,只要简单的使用* yum update *命令,然后就是见证奇迹的时刻。
|
||||
|
||||
CentOS 6.5 迎来了新的更新包和新功能。可以在[release notes][2]中查看更多细节信息。
|
||||
|
||||
### 主要更新 ###
|
||||
|
||||
> 精密时间协议 - 以前仅是一个科技预览版 - 现在已经完整支持了!以下设备支持网络时间标记:bnx2x,tg3 , e1000e , igb , ixgbe ,sfc。
|
||||
> 精密时间协议 - 以前仅是一个科技预览版 - 现在已经完整支持了!以下设备支持网络时间戳:bnx2x,tg3 , e1000e , igb , ixgbe ,sfc。
|
||||
> OpenSSL 升级到1.0.1版本
|
||||
> OpenSSL、NSS支持TLS1.1和1.2
|
||||
> KVM得到大量加强.包括提升对VMDK- 和 VHDX-Files 的只读,CPU支持热插拔以及升级了 virt-v2v-/virt-p2v-conversion 工具
|
||||
> KVM得到大量加强。包括提升对VMDK文件和VHDX文件的只读,CPU支持热插拔以及升级了 virt-v2v-/virt-p2v-conversion 工具
|
||||
> Hyper-V 和 VMware 驱动升级
|
||||
> 升级到 Evolution(2.32)和 Libre Office(4.0.4)
|
||||
|
||||
### 下载 ###
|
||||
|
||||
这篇教程我们将要安装它的桌面版。请从下面的任意一个的url开始
|
||||
这篇教程我们将要安装它的桌面版。你可以从下面的任意一个url开始
|
||||
|
||||
[http://isoredirect.centos.org/centos-6/6.5/isos/][3]
|
||||
[http://mirror.centos.org/centos/6.5/isos/][4]
|
||||
|
||||
|
||||
选择你的机器制式,它会列出一张镜像表。进入任何一个镜像、得到种子文件下载或者直接下载iso链接。有许多选择下载方式可以选择,比如,LiveCD, LiveDVD, Dvd1+2, Minimal 和 Netinstall.
|
||||
选择你的机器制式,它会列出一张镜像表。进入任何一个镜像、得到种子文件下载或者直接下载iso链接。有许多选择下载方式可以选择,比如,LiveCD, LiveDVD, Dvd1+2双碟套装, Minimal最小化安装 和 Netinstall.
|
||||
|
||||
Minimal安装程序是一个提供文字安装,这样安装的CentOS将只有shell和最少软件应用程序。剩余的所有东西不得不你自己安装。
|
||||
Minimal最小化安装是一个基于文字界面的安装程序,这样安装的CentOS将只有shell和最少软件应用程序。剩余的所有东西不得不你自己通过yum安装。
|
||||
|
||||
LiveCD/LiveDVD提供桌面版和GUI安装程序,可以安装CentOS系统但是不提供任何可选择的软件包。
|
||||
|
||||
DvD1+2 被设置为提供完整的应用程序给需要他的人
|
||||
DvD1+2双碟套装给有需求的人提供完整的应用程序集合
|
||||
|
||||
netinstall 事实上会先下载安装镜像然后再安装
|
||||
|
||||
这篇文章我们将使用LiveCD。 它大概有650MB。
|
||||
尽管CentOS主要使用在服务器上,但有一个桌面系统可以帮助你的服务器在安装时创造一个基础GUI的安装环境。在其他文章,我们将会尝试minimal 和 netinstall安装方法。
|
||||
尽管CentOS主要使用在服务器上,但它有一个桌面系统可以帮助你的服务器在安装时创造一个基础GUI的安装环境。在其他文章,我们将会尝试minimal 和 netinstall安装方法。
|
||||
|
||||
|
||||
### 安装 ###
|
||||
@ -73,7 +73,7 @@ netinstall 事实上会先下载安装镜像然后再安装
|
||||
|
||||
![](http://www.binarytides.com/blog/wp-content/uploads/2013/12/centos-65-install-screenshot-7.png)
|
||||
|
||||
8.**Root 密码** 下面是输入 root 密码 ,最好是输入一个熟悉的密码。
|
||||
8.**Root 密码** 下面是输入 root 密码 ,最好是输入一个你熟悉但要足够强壮的密码。
|
||||
|
||||
![](http://www.binarytides.com/blog/wp-content/uploads/2013/12/centos-65-install-screenshot-8.png)
|
||||
|
||||
@ -82,7 +82,7 @@ netinstall 事实上会先下载安装镜像然后再安装
|
||||
|
||||
![](http://www.binarytides.com/blog/wp-content/uploads/2013/12/centos-65-install-screenshot-9.png)
|
||||
|
||||
10.**复制文件** 现在安装已经开始复制文件了。现在除了等待和盯着没有什么事情可以做。LiveCD安装器基本上从CD镜像上复制到硬盘上。你没有得到任何安装包的选项去选择安装或省略。同样liveCD只有很少的软件和应用程序一起打包。
|
||||
10.**复制文件** 现在安装已经开始复制文件了。现在除了等待和盯着没有什么事情可以做。LiveCD安装器基本上从CD镜像上复制到硬盘上。你没有得到任何安装包的选项去选择安装或省略。而且liveCD本身只自带了很少的软件和应用程序。
|
||||
|
||||
![](http://www.binarytides.com/blog/wp-content/uploads/2013/12/centos-65-install-screenshot-10.png)
|
||||
|
||||
@ -130,7 +130,7 @@ CentOS 6.5 release notes(版本记录)
|
||||
|
||||
via: http://www.binarytides.com/centos-6-5-installation-screenshots/
|
||||
|
||||
译者:[Vic___](http://blog.csdn.net/Vic___) 校对:[校对者ID](https://github.com/校对者ID)
|
||||
译者:[Vic___](http://blog.csdn.net/Vic___) 校对:[Mr小眼儿](http://blog.csdn.net/tinyeyeser)
|
||||
|
||||
本文由 [LCTT](https://github.com/LCTT/TranslateProject) 原创翻译,[Linux中国](http://linux.cn/) 荣誉推出
|
||||
|
||||
@ -138,4 +138,4 @@ via: http://www.binarytides.com/centos-6-5-installation-screenshots/
|
||||
[2]:http://wiki.centos.org/Manuals/ReleaseNotes/CentOS6.5
|
||||
[3]:http://isoredirect.centos.org/centos-6/6.5/isos/
|
||||
[4]:http://mirror.centos.org/centos/6.5/isos/
|
||||
[5]:http://wiki.centos.org/Manuals/ReleaseNotes/CentOS6.5
|
||||
[5]:http://wiki.centos.org/Manuals/ReleaseNotes/CentOS6.5
|
||||
|
@ -1,10 +1,10 @@
|
||||
Linux 基础命令 – watch
|
||||
================================================================================
|
||||
linux系统里有一些日志文件。观察这些日志文件是系统管理员的一个重要任务。你可以很方便地[使用tail命令][1]观察它们。但是如果你想要长时间监视这些文件,每几分钟使用tail检查那些日志文件是一件很乏味的事情。你会写一个短小的[无限循环的脚本][2]来周期性地检查文件,但是它会导致已经有程序为你处理了重复的任务。
|
||||
linux系统里有一些日志文件。观察这些日志文件是系统管理员的一个重要任务。你可以很方便地[使用tail命令][1]观察它们。但是如果你想要长时间监视这些文件,每几分钟使用tail检查那些日志文件是一件很乏味的事情。你可以写一个短小的[无限循环的脚本][2]来周期性地检查文件,但其实已经有一个程序可以为你处理这种重复的任务。
|
||||
|
||||
### Linux watch 命令 ###
|
||||
|
||||
Linux中的**watch** 命令提供了一种方式处理重复的任务。默认上**watch**会每2秒重复执行命令。就如你想的,watch是一个很好的观察log文件的工具。下面是一个例子。
|
||||
Linux中的**watch** 命令提供了一种方式处理重复的任务。默认**watch**会每2秒重复执行命令。你一定也想到了,watch是一个很好的观察log文件的工具。下面是一个例子。
|
||||
|
||||
watch tail /var/log/syslog
|
||||
|
||||
@ -19,7 +19,7 @@ Linux中的**watch** 命令提供了一种方式处理重复的任务。默认
|
||||
|
||||
### 带有管道的watch命令 ###
|
||||
|
||||
**watch**没有被限制浏览日志文件。它可以用来重复你给它的任何命令。如果你要[监测CPU的温度][3],你可以使用**watch**后跟上**sensord**命令来查看。
|
||||
**watch**并不仅限于浏览日志文件。它可以用来重复你给它的任何命令。如果你要[监测CPU的温度][3],你可以使用**watch**后跟上**sensord**命令来查看。
|
||||
|
||||
watch -n 1 sensors
|
||||
|
||||
@ -56,10 +56,10 @@ Linux中的**watch** 命令提供了一种方式处理重复的任务。默认
|
||||
|
||||
via: http://tuxtweaks.com/2013/12/linux-watch-command/
|
||||
|
||||
译者:[geekpi](https://github.com/geekpi) 校对:[校对者ID](https://github.com/校对者ID)
|
||||
译者:[geekpi](https://github.com/geekpi) 校对:[Mr小眼儿](http://blog.csdn.net/tinyeyeser)
|
||||
|
||||
本文由 [LCTT](https://github.com/LCTT/TranslateProject) 原创翻译,[Linux中国](http://linux.cn/) 荣誉推出
|
||||
|
||||
[1]:http://tuxtweaks.com/2011/02/command-line-basics-head-and-tail/
|
||||
[2]:http://tuxtweaks.com/2012/01/creating-a-terminal-window-clock/
|
||||
[3]:http://tuxtweaks.com/2008/08/how-to-control-fan-speeds-in-ubuntu/
|
||||
[3]:http://tuxtweaks.com/2008/08/how-to-control-fan-speeds-in-ubuntu/
|
||||
|
@ -1,8 +1,8 @@
|
||||
每日Ubuntu小技巧 - 在Ubuntu上面安装VMware Workstation
|
||||
================================================================================
|
||||
VMware Workstation是第二类商用虚拟化软件。被称为第二类是因为它是运行在现有的操作系统之上的,而正在运行的计算机成为宿主机。
|
||||
VMware Workstation是一款“第二类”商用虚拟化软件。被称为“第二类”是因为它是运行在现有的操作系统之上的,而正在运行的计算机则成为其宿主机。
|
||||
|
||||
你可以使用VMware Workstation在运行在宿主机上的一个操作系统上同时运行多个客户机。客户机可以是被支持的32位或者64位的操作系统。VMware Workstation支持Windows,Mac OS X,Solaris和许多其他系统。
|
||||
你可以使用VMware Workstation在宿主机上同时运行各自具有独立操作系统的多个客户机。客户机可以是32位或者64位的操作系统。VMware Workstation支持Windows,Mac OS X,Solaris和许多其他系统。
|
||||
|
||||
|
||||
这篇简短的教程将会教你怎么在Ubuntu上面安装VMware Workstation。
|
||||
@ -17,7 +17,7 @@ VMware Workstation是第二类商用虚拟化软件。被称为第二类是因
|
||||
|
||||
sudo apt-get install build-essential linux-headers-`uname -r`
|
||||
|
||||
然后,下载VMware Workstation。接着进入Firefox保存文件的 **~/下载** 目录。
|
||||
然后,下载VMware Workstation。接着进入**~/Downloads** 目录,我的Firefox把下载的文件保存在这里。(译注:如果你的Ubuntu是中文版,该路径默认则为**~/下载**,下述命令也要相应变为 “cd 下载”)
|
||||
|
||||
cd Downloads
|
||||
|
||||
@ -25,7 +25,7 @@ VMware Workstation是第二类商用虚拟化软件。被称为第二类是因
|
||||
|
||||
unzip VMware-Workstation-Full*.zip
|
||||
|
||||
然后,运行如下命令让文件可以被执行。
|
||||
然后,运行如下命令给文件加上可执行权限。
|
||||
|
||||
chmod +x VMware-Workstation-Full*.bundle
|
||||
|
||||
@ -33,11 +33,11 @@ VMware Workstation是第二类商用虚拟化软件。被称为第二类是因
|
||||
|
||||
sudo ./VMware-Workstation-Full*.bundle
|
||||
|
||||
在完成安装前按照向导进行选择。当所以工作完成后,从Dash打开它并开始创建客户机。
|
||||
在完成安装前按照向导进行选择。当所有工作完成后,从Dash打开它并开始创建客户机。
|
||||
|
||||
![](http://www.liberiangeek.net/wp-content/uploads/2013/12/vmwareworkstationubuntu.png)
|
||||
|
||||
你可以从所有的类型中选择创建许多客户机,包括Windows,Linux,Nevell,Solaris等。
|
||||
你可以从所有的类型中选择创建各种客户机,包括Windows,Linux,Nevell,Solaris等。
|
||||
|
||||
![](http://www.liberiangeek.net/wp-content/uploads/2013/12/vmwareworkstationubuntu1.png)
|
||||
|
||||
@ -47,7 +47,7 @@ Enjoy!
|
||||
|
||||
via: http://www.liberiangeek.net/2013/12/daily-ubuntu-tips-install-vmware-workstation-in-ubuntu/
|
||||
|
||||
译者:[SCUSJS](https://github.com/scusjs) 校对:[校对者ID](https://github.com/校对者ID)
|
||||
译者:[SCUSJS](https://github.com/scusjs) 校对:[Mr小眼儿](http://blog.csdn.net/tinyeyeser)
|
||||
|
||||
本文由 [LCTT](https://github.com/LCTT/TranslateProject) 原创翻译,[Linux中国](http://linux.cn/) 荣誉推出
|
||||
|
||||
|
@ -1,44 +1,49 @@
|
||||
How to Upgrade to GNOME 3.10 in Ubuntu 13.10
|
||||
如何在Ubuntu 13.10中升级GNOME版本到 3.10?
|
||||
================================================================================
|
||||
|
||||
![](http://www.omgubuntu.co.uk/wp-content/uploads/2013/09/header-bars.jpg)
|
||||
|
||||
**Ubuntu 13.10 在它的归档(archives是这么翻译吗?)中搭载可用的GNOME 3.8桌面。 尽管对于Unity这是一个可靠稳定以及有特色的替代品,但这个版本还是过时了。**
|
||||
**Ubuntu 13.10 中配备了GNOME 3.8桌面。 尽管它相比Unity是一个可靠稳定以及有特色的替代品,但这个版本还是过时了。**
|
||||
|
||||
GNOME桌面的最新版本在2013年9月被发布了,随之而来的是一系列改进的功能、应用程序和可用性的调整。从对高分辨率屏幕的支持到应用窗口上全新的客户端美化,GNOME 3.10是一个引人注目的升级版本。
|
||||
GNOME桌面的最新版本在2013年9月发布,随之而来的是一系列改进的功能、应用程序和可用性的调整。从对高分辨率屏幕的支持到客户端应用窗口上的美化,GNOME 3.10无疑是一个引人注目的升级版本。
|
||||
|
||||
好消息是:假设你正在运行Ubuntu 13.10,拥有不错的网络连接和命令行功能(一语双关),那么你无需继续使用一个过时版本的GNOME。
|
||||
好消息是:假设你正在运行Ubuntu 13.10,拥有不错的网络连接和命令行水平,那么你无需继续使用一个过时版本的GNOME。
|
||||
|
||||
### 在Ubuntu 13.10 上升级到GNOME 3.10 ###
|
||||
### 在Ubuntu 13.10 上如何升级到GNOME 3.10 ###
|
||||
|
||||
为了那些关注点在我会重申的地方上的普通读者的利益(skim未翻译),你**需要运行Ubuntu 13.10来安装GNOME 3.10**.
|
||||
为了那些爱略过前言,直奔主题的读者,我还要重申两点:
|
||||
|
||||
首先,让我们添加GNOME 3 的PPA到Ubuntu的软件资源中。这个操作可以使用图形界面完成,但使用命令行会更容易归档一些。
|
||||
**要使用本方法安装GNOME 3.10,需运行 Ubuntu 13.10版本。**
|
||||
|
||||
打开一个新的*终端*窗口,键入下列命令,在被要求的时候输入你的用户密码:
|
||||
**GNOME 3.10还未在 Ubuntu 13.10上测试,所以升级风险自付。**
|
||||
|
||||
|
||||
首先,让我们添加GNOME 3 的PPA到Ubuntu的软件资源中。这个操作可以使用图形界面完成,但使用命令更容易一些。
|
||||
|
||||
打开一个新的*终端*窗口,键入下列命令,在需要时输入你的用户密码:
|
||||
|
||||
sudo add-apt-repository ppa:gnome3-team/gnome3-next && sudo apt-get update
|
||||
|
||||
添加完PPA和更新包列表后,我们就可以转向安装GNOME 3.10了。运行下列命令,当弹出提示时再次输入你的用户密码:
|
||||
|
||||
添加完PPA并更新包列表后,我们就可以继续,开始安装GNOME 3.10了。运行下列命令,当弹出提示时再次输入你的用户密码:
|
||||
|
||||
sudo apt-get update && sudo apt-get install gnome-shell ubuntu-gnome-desktop
|
||||
|
||||
获取并安装所有必要的包和部件会花一点时间,所以请耐心一点。
|
||||
获取并安装所有必要的包和组件会花一点时间,所以请耐心一点。
|
||||
|
||||
在安装过程中,在终端可能会弹出一个提示,要求你选择一种显示管理器,默认使用的是“登录窗口”。
|
||||
在安装过程中,在终端将会弹出一个提示,要求你选择一种显示管理器,默认使用的是“登录窗口”。
|
||||
|
||||
这个决定完全取决于你;UBuntu的Unity Greeter和**GNOME的显示管理器**都能让你很轻松地在桌面会话之间切换(如果你想保持在Unity界面或者另一个桌面将很方便),但仅仅只有GDM提供给GNOME特定的功能,譬如锁屏通知。
|
||||
|
||||
当你准备好你的选择后,使用上下键选择,然后敲击‘确认\返回’键以确认选择。安装便会继续进行。
|
||||
当你确定选择后,使用上下键选择,然后敲击‘确认\返回’键以确认。安装便会继续进行。
|
||||
|
||||
|
||||
### 增加额外的功能 ###
|
||||
|
||||
![](http://www.omgubuntu.co.uk/wp-content/uploads/2013/09/gnome-music.jpg)
|
||||
|
||||
GNOME 3.10还有一些不错的新特性,应用-[包括GNOME天气,音乐盒地图][1] 以及其它各种各样的改变。
|
||||
因为并不是所有的特性都足够稳定以致于可以被包含在我们之前添加的GNOME 3 PPA中,所以如果你想使用它们,就需要利用到一对额外的GNOME PPA。
|
||||
GNOME 3.10还有一些不错的新特性和应用-[包括GNOME天气,音乐盒及地图][1] 以及其它各种各样的改变。因为并不是所有的特性都足够稳定以致于可以被包含在我们之前添加的GNOME 3 PPA中,所以如果你想使用它们,就需要利用到一对额外的GNOME PPA。
|
||||
|
||||
现在-你需要意识到很重要的是-在这些仓库里的一些包据说已经有了稳定的发行版。它们中的大部分是次要的,譬如应用程序崩溃和损坏的特性。但对于更多主要的发行版来说,像使得GNOME完全崩溃是有可能的。
|
||||
现在-你需要意识到很重要的是-在这些仓库里的一些包据说有稳定性问题。这些问题大多是小问题,譬如应用程序崩溃和损坏。但还是有潜在的可能,导致像使GNOME完全崩溃这样的重大问题。
|
||||
|
||||
除开这个警告,在终端里打开一个新的选项卡,输入下列命令:
|
||||
|
||||
@ -56,34 +61,36 @@ GNOME 3.10还有一些不错的新特性,应用-[包括GNOME天气,音乐盒
|
||||
|
||||
### 细小的差别 ###
|
||||
|
||||
如果你在不卸载Unity的情况下安装GNOME 3.10,那么有一些注意事项你需要记下来。
|
||||
如果你在不卸载Unity的情况下安装GNOME 3.10,那么有一些注意事项。
|
||||
|
||||
首先,你会发现**在系统设置里“Online Accounts”有两个入口**。其中,有key-themed(不知道怎么翻译)的图标是Unity版的,另一个有插件符号的是GNOME版的。
|
||||
首先,你会发现**在系统设置里“Online Accounts”有两个入口**。其中,有钥匙图标的是Unity版的,另一个有插孔符号的是GNOME版的。
|
||||
|
||||
一些应用程序可能会要求你往Unity中添加账户(Shotwell, Gwibber, Empathy),有一些可能是要求往GNOME中添加(Evolution, Documents, Contacts)。
|
||||
|
||||
|
||||
![](http://www.omgubuntu.co.uk/wp-content/uploads/2013/04/online-accounts.jpg)
|
||||
|
||||
“通知”和“搜索”入口是GNOME指定的,它们让你挑选哪些应用程序和资源能够显示通知或出现在活动区。
|
||||
“通知”和“搜索”入口是GNOME专有的,它们让你挑选哪些应用程序和资源能够显示通知或出现在活动区。
|
||||
|
||||
### 卸载GNOME 3.10 ###
|
||||
|
||||
既然你已经尝试了GNOME 3.10,但不喜欢它。这时该怎么办?
|
||||
假如你已经尝试了GNOME 3.10,但不喜欢它。这时该怎么办?
|
||||
|
||||
假设我们使用一个叫做“PPA Purge”的命令行工具,那么移除GNOME 3.10 是一个相当简单的过程。这个工具可以在Ubuntu软件中心里找到,是目前为止自动移除或降级从PPA安装的包的最容易的方法。
|
||||
使用一个叫做“PPA Purge”的命令行工具,移除GNOME 3.10 是一个相当简单的过程。这个工具可以在Ubuntu软件中心里找到,是目前为止自动移除或降级从PPA安装的包的最容易的方法。
|
||||
|
||||
- [Install PPA Purge from Ubuntu Software Center][2]
|
||||
- [从Ubuntu软件中心安装PPA Purge][2]
|
||||
|
||||
为了使用这个工具,我们需要返回终端然后键入下面命令,要留意任何出现在降级过程中的提示。
|
||||
|
||||
|
||||
sudo ppa-purge ppa:gnome3-team/gnome3-next
|
||||
|
||||
如果你也添加了其它可选的PPA,你也需要清楚它们:
|
||||
如果你也添加了其它可选的PPA,你也需要清除它们:
|
||||
|
||||
sudo ppa-purge ppa:gnome3-team/gnome3-staging
|
||||
sudo ppa-purge ppa:gnome3-team/gnome3
|
||||
|
||||
一旦完成,你应该在GNOME 3.8 桌面中离开(stock不知怎么翻译)。如果你不再想保留GNOME Shell了,你可以执行下列命令去卸载它:
|
||||
完成后,你就剩下了原来的 GNOME 3.8 桌面。如果你不再想保留GNOME Shell了,你可以执行下列命令去卸载它:
|
||||
Once completed you should be left with the stock GNOME 3.8 desktop.
|
||||
|
||||
sudo apt-get remove gnome-shell ubuntu-gnome-desktop
|
||||
|
||||
@ -93,7 +100,7 @@ GNOME 3.10还有一些不错的新特性,应用-[包括GNOME天气,音乐盒
|
||||
|
||||
via: http://www.omgubuntu.co.uk/2013/12/upgrade-gnome-3-10-ubuntu-13-10
|
||||
|
||||
译者:[KAyGuoWhu](https://github.com/KayGuoWhu) 校对:[校对者ID](https://github.com/校对者ID)
|
||||
译者:[KAyGuoWhu](https://github.com/KayGuoWhu) 校对:[jasminepeng](https://github.com/jasminepeng)
|
||||
|
||||
本文由 [LCTT](https://github.com/LCTT/TranslateProject) 原创翻译,[Linux中国](http://linux.cn/) 荣誉推出
|
||||
|
||||
|
@ -1,16 +1,16 @@
|
||||
Linux中打印系统中USB信息的lsusb命令
|
||||
================================================================================
|
||||
**通用串行总线**或者**USB**被设计成为连接计算机外设的标准,如键盘、定位装置、打印机、数码相机、便携式媒体播放器、磁盘和网络适配器等等 - 来源:[Wikipedia][1]
|
||||
**通用串行总线**或者**USB**被设计成为连接计算机外设的标准,如键盘、鼠标、打印机、数码相机、便携式媒体播放器、磁盘和网络适配器等等 - 来源:[Wikipedia][1]
|
||||
|
||||
![lsusb 命令](http://linoxide.com/wp-content/uploads/2013/12/lsusb-linux-command.jpg)
|
||||
|
||||
既然它成为了一个工业标准,那么现在很难看到一个没有USB口的计算机了。USB闪存的使用使得它更加流行。在Linux上,我们使用**lsusb**来列出USB设备和它的属性。
|
||||
|
||||
### lsusb是什么 ###
|
||||
### 什么是lsusb ###
|
||||
|
||||
从它的手册上,lsusb定义成:
|
||||
在它的手册上,lsusb定义成:
|
||||
|
||||
显示系统中和连接到系统的USB总线信息的工具。
|
||||
显示系统中以及连接到系统的USB总线信息的工具。
|
||||
|
||||
如何运行lsusb。
|
||||
|
||||
@ -31,18 +31,18 @@ Linux中打印系统中USB信息的lsusb命令
|
||||
|
||||
**lsusb**会显示驱动和内部连接到你系统的设备。
|
||||
|
||||
这是如何理解输出。我抓取了上面输出的最后一行:
|
||||
下面介绍如何理解输出。我抓取了上面输出的最后一行:
|
||||
|
||||
#### Bus 008 Device 002 : ID 0a5c:217f Broadcom Corp. Bluetooth Controller ####
|
||||
|
||||
- **Bus 008** : 设备连接的地方
|
||||
- **Device 002** : 连接到总线上的第二台设备
|
||||
- **Bus 008** : 指明设备连接到哪
|
||||
- **Device 002** : 表明这是连接到总线上的第二台设备
|
||||
- **ID** : 设备的ID
|
||||
- **Broadcom Corp**. Bluetooth Controller :生产商名字和设备名
|
||||
- **Broadcom Corp. Bluetooth Controller** :生产商名字和设备名
|
||||
|
||||
我们同样可以看到在我们的系统中同时使用了USB2.0 root hub驱动和USB 1.1 root hub驱动。
|
||||
|
||||
用[dmsg][2]命令同样可以看到。下面是一个例子。
|
||||
用[dmesg][2]命令同样可以看到。下面是一个例子。
|
||||
|
||||
$ dmesg |grep -i usb
|
||||
|
||||
@ -98,7 +98,7 @@ Linux中打印系统中USB信息的lsusb命令
|
||||
|
||||
### 找出连接了多少USB设备 ###
|
||||
|
||||
使用上面的命令来找到
|
||||
使用下面的命令
|
||||
|
||||
$ find /dev/bus
|
||||
|
||||
@ -218,35 +218,35 @@ Linux中打印系统中USB信息的lsusb命令
|
||||
|
||||
$ lsusb -t
|
||||
|
||||
/: Bus 08.Port 1: Dev 1, Class=root_hub, Driver=uhci_hcd/2p, 12M
|
||||
/: Bus 07.Port 1: Dev 1, Class=root_hub, Driver=uhci_hcd/2p, 12M
|
||||
/: Bus 06.Port 1: Dev 1, Class=root_hub, Driver=uhci_hcd/2p, 12M
|
||||
/: Bus 05.Port 1: Dev 1, Class=root_hub, Driver=uhci_hcd/2p, 12M
|
||||
/: Bus 04.Port 1: Dev 1, Class=root_hub, Driver=uhci_hcd/2p, 12M
|
||||
/: Bus 03.Port 1: Dev 1, Class=root_hub, Driver=uhci_hcd/2p, 12M
|
||||
/: Bus 02.Port 1: Dev 1, Class=root_hub, Driver=ehci_hcd/6p, 480M
|
||||
/: Bus 08.Port 1: Dev 1, Class=root\_hub, Driver=uhci_hcd/2p, 12M
|
||||
/: Bus 07.Port 1: Dev 1, Class=root\_hub, Driver=uhci_hcd/2p, 12M
|
||||
/: Bus 06.Port 1: Dev 1, Class=root\_hub, Driver=uhci_hcd/2p, 12M
|
||||
/: Bus 05.Port 1: Dev 1, Class=root\_hub, Driver=uhci_hcd/2p, 12M
|
||||
/: Bus 04.Port 1: Dev 1, Class=root\_hub, Driver=uhci_hcd/2p, 12M
|
||||
/: Bus 03.Port 1: Dev 1, Class=root\_hub, Driver=uhci_hcd/2p, 12M
|
||||
/: Bus 02.Port 1: Dev 1, Class=root\_hub, Driver=ehci_hcd/6p, 480M
|
||||
|__ Port 1: Dev 4, If 0, Class=stor., Driver=usb-storage, 480M
|
||||
|__ Port 6: Dev 3, If 0, Class=’bInterfaceClass 0x0e not yet handled’, Driver=uvcvideo, 480M
|
||||
|__ Port 6: Dev 3, If 1, Class=’bInterfaceClass 0x0e not yet handled’, Driver=uvcvideo, 480M
|
||||
/: Bus 01.Port 1: Dev 1, Class=root_hub, Driver=ehci_hcd/6p, 480M
|
||||
/: Bus 01.Port 1: Dev 1, Class=root\_hub, Driver=ehci_hcd/6p, 480M
|
||||
|
||||
数字**12M和480M** 是**指USB类型的传输速率**。
|
||||
|
||||
- 12M 意味着 USB 1.0 / 1.1的速率是 12Mbit/s
|
||||
- 480M 意味着 USB 2.0的速率是 480Mbit/s
|
||||
|
||||
如果你找到5.0G,那意味这你有USB 3.0类型接口。它有5.0Gbit/s的传输速率。Linux从**/var/lib/usbutils/usb.ids**识别USB设备的详细信息。
|
||||
如果你找到5.0G,那意味这你有USB 3.0类型接口。它有5.0Gbit/s的传输速率。Linux从**/var/lib/usbutils/usb.ids**识别USB设备的详细信息。或者你可以访问[Linux-USB.org][3]获取最新的USB ID列表。
|
||||
|
||||
这些就是lsusb命令的基础。你可以用lsusb命令追你的系统上的USB设备做一个诊断。一般来说,你可以通过lsusb的手册探索命令的更多详细细节。只要输入**man lsab**来打开它的手册。
|
||||
这些就是lsusb命令的基础。你可以用lsusb命令对你的系统上的USB设备做一个诊断。一般来说,你可以通过lsusb的手册探索命令的更多详细细节。只要输入**man lsab**来打开它的手册。
|
||||
|
||||
--------------------------------------------------------------------------------
|
||||
|
||||
via: http://linoxide.com/linux-command/linux-lsusb-command-print-usb/
|
||||
|
||||
译者:[geekpi](https://github.com/geekpi) 校对:[校对者ID](https://github.com/校对者ID)
|
||||
译者:[geekpi](https://github.com/geekpi) 校对:[Mr小眼儿](http://blog.csdn.net/tinyeyeser)
|
||||
|
||||
本文由 [LCTT](https://github.com/LCTT/TranslateProject) 原创翻译,[Linux中国](http://linux.cn/) 荣誉推出
|
||||
|
||||
[1]:http://en.wikipedia.org/wiki/USB
|
||||
[2]:http://linoxide.com/linux-command/linux-dmesg-command/
|
||||
[3]:http://www.linux-usb.org/usb.ids
|
||||
[3]:http://www.linux-usb.org/usb.ids
|
||||
|
@ -0,0 +1,106 @@
|
||||
Linux vmstat 命令 - 报告虚拟内存统计的工具
|
||||
================================================================================
|
||||
众所周知,计算机必须有称之为RAM(随机访问内存)的存储器使得计算机工作。RAM指的是插在计算机主板上的物理存储。这里的RAM被用于加载像浏览器、文字处理器这类的程序、实际上,你使用的程序都运行在内存上。
|
||||
|
||||
让我们假设你有2GB的内存。当你在运行操作系统时,你的可用内存可能只有1.5GB。接着你使用了大量的程序。当内存使用满之后,你可能再也无法加载更多的程序。浅显地说,计算机可能会说:"抱歉,你不能在运行更多的程序了,如果你还要运行其他的程序请先关闭一些程序。"
|
||||
|
||||
为了解决这个问题,操作系统包括Linux使用了一个方法称之为虚拟内存。这个方法会搜索最近不在使用的程序的内存区域,接着将它们拷贝到计算机硬盘上。这会腾出一些剩余内存空间给你有机会运行更多的程序。
|
||||
|
||||
为了监视虚拟内存的活动,我们使用**vmstat**工具。
|
||||
|
||||
### 什么事 vmstat ###
|
||||
|
||||
vmstat是一个提供报告虚拟内存统计的工具。他/她覆盖了系统内存、交换和实时处理器利用率。
|
||||
|
||||
### 如何运行 vmstat ###
|
||||
|
||||
和[mpstat][1]一样,vmstat包含在sysstat包中。如果你还没有,请安装sysstat包。
|
||||
|
||||
为了运行vmstat,只需在控制台输入vmstat。不带参数运行vmstat会显示vmstat的默认结果。
|
||||
|
||||
![](http://linoxide.com/wp-content/uploads/2013/12/vmstat_default.png)
|
||||
|
||||
让我们看下如何读取vmstat提供的信息:
|
||||
|
||||
### Procs ###
|
||||
|
||||
procs有 **r**列和**b**列。**r**列代表等待访问CPU进程的数量。而b列意味着睡眠进程的数量。在这些列的下面,是它们的值。从上面的截图中,我门有2个进程正在等待访问CPU,0个睡眠进程。
|
||||
|
||||
### Memory ###
|
||||
|
||||
memory有**swpd、 free、 buff** 和 **cache** 这些列.这些信息和命令**free -m**相同。**swpd列**显示了有多少内存已经被交换到了交换文件或者磁盘。**free列**显示了未分配的可用内存。**buff列**显示了使用中的内存。**cache列**显示了有多少内存可以被交换到交换文件或者磁盘上如果一些应用需要他们。
|
||||
|
||||
### Swap ###
|
||||
|
||||
swap显示了从交换系统上发送或取回了多少内存。**si**列告诉我们每秒有多少内存被**从swap移到真实内存**中。**so**列告诉我们每秒有多少内存被**从真实内存移到swap**中。
|
||||
|
||||
### I/O ###
|
||||
|
||||
**io**依据块的读写显示了每秒输入输出的活动。**bi**列告诉我们块收到的数量,**bo**列告诉我们块发送的数量。
|
||||
|
||||
### System ###
|
||||
|
||||
system显示了每秒的系统操作数量。**in**列显示了系统每秒被中断的数量。**cs**列显示了系统为了处理所以任务而上下文切换的数量。
|
||||
|
||||
### CPU ###
|
||||
|
||||
CPU告诉了我们CPU资源的使用情况。**us列**显示了处理器在非内核程序消耗的时间。**sy列**显示了处理器在内核相关任务上消耗的时间。**id列**显示了处理器的空闲时间。**wa列**显示了处理器在等待IO操作完成以继续处理任务上的时间。
|
||||
|
||||
### 代延迟使用vmstat ###
|
||||
|
||||
作为一个统计工具,使用vmstat最好的方法是使用**延迟**。你可以间断地捕捉活动。让我假设以5秒的延迟使用vmstat。只需要在你的控制台中输入**vmstat 5**就行。
|
||||
|
||||
![](http://linoxide.com/wp-content/uploads/2013/12/vmstat_delay_5.png)
|
||||
|
||||
命令将会每5秒运行一次**直到**你按下Ctrl-C来终止它。你可以使用**count**来显示vmstat运行的次数。
|
||||
|
||||
![](http://linoxide.com/wp-content/uploads/2013/12/vmstat_count_7.png)
|
||||
|
||||
上面的命令会**以5秒的间隔运行7次vmstat**。
|
||||
|
||||
### 显示活跃和非活跃内存 ###
|
||||
|
||||
要这么做,你可以在vmstat后加入**-a**选项。这是个示例。
|
||||
|
||||
![](http://linoxide.com/wp-content/uploads/2013/12/vmstat_a.png)
|
||||
|
||||
### 显示磁盘统计数据总结 ###
|
||||
|
||||
如果你想,vmstat可以打印系统磁盘统计。使用**-D**选项就行。
|
||||
|
||||
![](http://linoxide.com/wp-content/uploads/2013/12/vmstat_disk_sum.png)
|
||||
|
||||
### 显示单位 ###
|
||||
|
||||
你可以选择你想打印的显示单位字符。在**-S后跟上k (1000)、 K (1024)、 m (1000000)、 M (1048576)** 字节. 如果你不想选择单位,默认使用的是K (1024)。
|
||||
|
||||
![](http://linoxide.com/wp-content/uploads/2013/12/vmstat_define_unit.png)
|
||||
|
||||
### 为特定分区打印详细统计数据 ###
|
||||
|
||||
要这么做,你可以使用**-p选项跟上设备名**。这里有个例子。
|
||||
|
||||
![](http://linoxide.com/wp-content/uploads/2013/12/vmstat_partition.png)
|
||||
|
||||
### 文件 ###
|
||||
|
||||
vmstat使用这些文件工作。
|
||||
|
||||
/proc/meminfo
|
||||
/proc/stat
|
||||
/proc/*/stat
|
||||
|
||||
### 总结 ###
|
||||
|
||||
vmstat** on your console. It will bring you to vmstat manual page.
|
||||
如果你感觉系统运行超出内存了,在你增加物理内存前,这个工具可以帮助你确定问题的根本原因。通常上,你可以在控制台中输入**man vmstat**获取更多的关于vmstat的详细信息。这会带你进入vmstat的手册页。
|
||||
|
||||
--------------------------------------------------------------------------------
|
||||
|
||||
via: http://linoxide.com/linux-command/linux-vmstat-command-tool-report-virtual-memory-statistics/
|
||||
|
||||
译者:[geekpi](https://github.com/geekpi) 校对:[校对者ID](https://github.com/校对者ID)
|
||||
|
||||
本文由 [LCTT](https://github.com/LCTT/TranslateProject) 原创翻译,[Linux中国](http://linux.cn/) 荣誉推出
|
||||
|
||||
[1]:http://linoxide.com/linux-command/linux-mpstat-command/
|
@ -88,8 +88,8 @@ Who命令有一些参数用于调整输出。以下是常用的例子。
|
||||
|
||||
via: http://linoxide.com/linux-command/linux-who-command/
|
||||
|
||||
译者:[译者ID](https://github.com/译者ID) 校对:[校对者ID](https://github.com/校对者ID)
|
||||
译者:[译者ID](https://github.com/译者ID) 校对:[Caroline](https://github.com/carolinewuyan)
|
||||
|
||||
本文由 [LCTT](https://github.com/LCTT/TranslateProject) 原创翻译,[Linux中国](http://linux.cn/) 荣誉推出
|
||||
|
||||
[1]:http://linoxide.com/linux-command/linux-w-command/
|
||||
[1]:http://linoxide.com/linux-command/linux-w-command/
|
||||
|
@ -0,0 +1,115 @@
|
||||
戴文的Linux内核专题:27 配置内核 (23)
|
||||
================================================================================
|
||||
![](http://www.linux.org/attachments/slide-jpg.735/)
|
||||
|
||||
欢迎来到内核配置的下一章!本篇中我们会配置密码API,虚拟化和运行库。密码学指的是在需要的计算机之间加密和安全通信。用户可能加密数据以保证是收件人而不是黑客收到数据。
|
||||
|
||||
Linux内核需要在内核中启用"Cryptographic algorithm manager"(密码算法管理器)。这个特性提供了操作内核的加密特性所需的软件。
|
||||
|
||||
当启用这个它,用户空间提供了配置加密特性(Userspace cryptographic algorithm configuration)。注意:这个配置指的是内核运行时的加密设置,不是编译内核的工具。
|
||||
|
||||
为了加强性能,启用这个会在加密算法中停止自我检测的特性 (Disable run-time self tests)。
|
||||
|
||||
"GF(2^128) multiplication functions"是一种被一些密码使用特殊算法。GF代表的是" Galois field"(伽罗瓦域),是一种有限数的集合。这写集合称之为域并且有不同的大小。
|
||||
|
||||
"Null algorithms"是用于IPSec的算法。NULL加密意味这没有加密,因此这个驱动允许IPSec不使用加密。
|
||||
|
||||
任意算法可以转换成并行算法(Parallel crypto engine)。这个特性提供了转换器。
|
||||
|
||||
任意算法同样可以转换成异步算法(Software async crypto daemon)。
|
||||
|
||||
IPsec需要"Authenc support"。"Authenc support"代表"Authenticated Encryption and offers multiple encryptions to IPsec"(认证加密并对IPSec提供多重加密)。
|
||||
|
||||
CCM代表的是"Counter with CBC MAC"(CBC MAC计数器),IPSec需要它(CCM support)。
|
||||
|
||||
这个驱动提供了"GCM/GMAC support"。GCM意思是"Galois/Counter Mode"(伽罗瓦/计数器 模式),GMAC是"Galois Message Authentication Code"(伽罗瓦消息验证码)。
|
||||
|
||||
注意:我不会明确地解释一些特性的使用和细节。密码学是计算机中的特定领域,解释加密学超出了这篇文章的范围。
|
||||
|
||||
"Sequence Number IV Generator"是一个被某些加密软件使用的特殊的号码生成器。
|
||||
|
||||
Linux内核提供了不同的密码算法(CBC support)、 (CTR support)、 (CTS support)、 (ECB support)、 (LRW support)、 (PCBC support)、 (XTS support)、 (HMAC support)、 (XCBC support) 和 (VMAC support)。
|
||||
|
||||
"CRC32c CRC algorithm" 明确被SPARC64处理器使用。
|
||||
|
||||
"CRC32c INTEL hardware acceleration"是另外一个特定处理器的算法。它工作于带SSE4.2的Intel处理器。
|
||||
|
||||
内核提供了很多摘要、密码和其他加密软件。通常上,默认允许它们除非你有特殊的理由来启用或禁用这些特性。
|
||||
|
||||
注意:摘要(像MD5)会基于一个文件生成一个哈希值(字符序列)。哈希值接着被用于检查文件。比如,如果你从Canonical网站上下载了Ubuntu ISO安装盘,你可能想要知道你硬盘上的文件就是服务器上的文件的复制品。用户这么做的原因是ISO可能在长时间下载中被损坏。哈希值被用来证明文件没有被改变。
|
||||
|
||||
注意:密码是一种加密/解密算法。加密是使文件对除了接受者/拥有者之外的人都不可读。解密是浏览加密文件的过程。
|
||||
|
||||
Linux内核同样支持用户被强烈建议启用的不同的压缩算法(Deflate compression algorithm)、 (Zlib compression algorithm) 和 (LZO compression algorithm)。
|
||||
|
||||
内核可以生成用于加密软件的随机数(Pseudo Random Number Generation for Cryptographic modules)、(User-space interface for hash algorithms) 和 (User-space interface for symmetric key cipher algorithms)。
|
||||
|
||||
"Hardware crypto devices"是一个子菜单,包含了基于硬件加密工具的驱动。这个硬件在固件中含有算法。
|
||||
|
||||
"Asymmetric (public-key cryptographic) key type" 菜单中存在着不同的非对称公开密钥。
|
||||
|
||||
下面,我们可以进入配置工具主菜单(基于菜单接口)的下一个入口。虚拟化是寄放一个操作系统的
|
||||
能力。这意味这Linux(和其他的系统)可以运行其他的操作系统,仿佛客户机是一个应用一样。
|
||||
|
||||
"Kernel-based Virtual Machine (KVM) support"运行内核本身管理客户机。带Intel处理器的计算机需呀这个驱动(KVM for Intel processors support),AMD的则需要(KVM for AMD processors support)。
|
||||
|
||||
用于内核虚拟机(KVM)的内存管理单元(MMU)可以有一个审计系统。
|
||||
|
||||
启用这个特性使客户机的网络变得更快(Host kernel accelerator for virtio net)。
|
||||
|
||||
在配置哇内核虚拟机特性后,配置工具主菜单下的最后菜单是内核配置的最后一部分。这个菜单用于"Library Routines"(库运行时),同样也成为库函数。一部分内核可以被作为可以链接的库。比如,XZ过滤(压缩算法)可以被外部程序访问。下面列出了不同的库。
|
||||
|
||||
注意:CRC函数大多数都相同但有不同的特性和性能,通常来讲,最好启用这些特性。
|
||||
|
||||
CRC-CCITT functions - 循环冗余校验测试(Cyclic Redundancy Check)用于测试原始数据中的改变。
|
||||
|
||||
CRC16 functions - 循环冗余校验测试(Cyclic Redundancy Check)用于测试原始数据中的改变。
|
||||
|
||||
CRC calculation for the T10 Data Integrity Field - 循环冗余校验测试(Cyclic Redundancy Check)用于测试原始数据中的改变。
|
||||
|
||||
CRC ITU-T V.41 functions - 循环冗余校验测试(Cyclic Redundancy Check)用于测试原始数据中的改变。
|
||||
|
||||
CRC32/CRC32c functions - 循环冗余校验测试(Cyclic Redundancy Check)用于测试原始数据中的改变。
|
||||
|
||||
CRC32 perform self test on init - 循环冗余校验测试(Cyclic Redundancy Check)用于测试原始数据中的改变。
|
||||
|
||||
CRC32 implementation (Slice by 8 bytes) - 循环冗余校验测试(Cyclic Redundancy Check)用于测试原始数据中的改变。
|
||||
|
||||
CRC7 functions - 循环冗余校验测试(Cyclic Redundancy Check)用于测试原始数据中的改变。
|
||||
|
||||
CRC32c (Castagnoli, et al) Cyclic Redundancy-Check - 循环冗余校验测试(Cyclic Redundancy Check)用于测试原始数据中的改变。
|
||||
|
||||
CRC8 function - 循环冗余校验测试(Cyclic Redundancy Check)用于测试原始数据中的改变。
|
||||
|
||||
\* BCJ filter decoder - 为特定处理器设计的XZ解码器,这里的"*"是处理器。内核列出了一些不同的架构。
|
||||
|
||||
XZ decompressor tester - 用于测试XZ解码器的调试函数。
|
||||
|
||||
Averaging functions - "uptime"在"uptime"中看到的平均负载。
|
||||
|
||||
CORDIC algorithm - 双曲线和三角函数。
|
||||
|
||||
|
||||
JEDEC DDR data - JEDEC双倍数据速率SD-RAM规范
|
||||
|
||||
|
||||
你猜怎么了?我们已经完成便宜内核。在23篇之后,我敢肯定这是你的感觉 -
|
||||
|
||||
视频链接:[http://www.youtube.com/embed/barWV7RWkq0?wmode=opaque][1]
|
||||
|
||||
下面,我们可以编译并安装了
|
||||
|
||||
在遥远的地方,我仍然在听 -
|
||||
|
||||
视频链接:[http://www.youtube.com/embed/ELoUppY1esw?wmode=opaque][2]
|
||||
|
||||
--------------------------------------------------------------------------------
|
||||
|
||||
via: http://www.linux.org/threads/the-linux-kernel-configuring-the-kernel-part-23.5112/
|
||||
|
||||
译者:[geekpi](https://github.com/geekpi) 校对:[校对者ID](https://github.com/校对者ID)
|
||||
|
||||
本文由 [LCTT](https://github.com/LCTT/TranslateProject) 原创翻译,[Linux中国](http://linux.cn/) 荣誉推出
|
||||
|
||||
[1]:http://www.youtube.com/embed/barWV7RWkq0?wmode=opaque
|
||||
[2]:http://www.youtube.com/embed/ELoUppY1esw?wmode=opaque
|
@ -17,14 +17,14 @@ OpenPGP 是使用最广泛的电子邮件加密协议标准。无论你使用的
|
||||
- [Enigmail][1] Mozilla 系列的 OpenPGP 电子邮件加密软件
|
||||
![](http://www.linuxlinks.com/portal/content/reviews/Email/Screenshot-Enigmail.png)
|
||||
- [Mailvelope][2] 谷歌与火狐浏览器的扩展插件
|
||||
- [GnuPG][3] 加密模糊数据通信
|
||||
- [Mymail-Crypt for Gmail][4] 简易电子邮件加密软件
|
||||
- [GnuPG][3] 为数据和通信提供加密或签名保护
|
||||
- [Mymail-Crypt for Gmail][4] 简易电子邮件解决方案
|
||||
|
||||
--------------------------------------------------------------------------------
|
||||
|
||||
via: http://www.linuxlinks.com/article/2013120707481589/EmailEncryption.html
|
||||
|
||||
译者:[SteveArcher](https://github.com/SteveArcher) 校对:[校对者ID](https://github.com/校对者ID)
|
||||
译者:[SteveArcher](https://github.com/SteveArcher) 校对:[Mr小眼儿](http://blog.csdn.net/tinyeyeser)
|
||||
|
||||
本文由 [LCTT](https://github.com/LCTT/TranslateProject) 原创翻译,[Linux中国](http://linux.cn/) 荣誉推出
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user