mirror of
https://github.com/LCTT/TranslateProject.git
synced 2025-03-21 02:10:11 +08:00
20140224-1 选题
This commit is contained in:
parent
140e428d1a
commit
a29b44bda8
@ -0,0 +1,139 @@
|
||||
Glances – An Advanced Real Time System Monitoring Tool for Linux
|
||||
================================================================================
|
||||
Earlier, we’ve written about many Linux [System Monitor Tools][1] that can be used to monitor performance of Linux systems, but we think that, most users prefer the default one that comes with every Linux distributions (**top** command).
|
||||
|
||||
The [top command][2] is real time task manager in Linux and the most frequently used system monitoring tool in **GNU/Linux** distributions to find the performance related bottlenecks in system which help us to take corrective actions. It has a nice minimalist interface, comes with few amount of reasonable options that enables us to get a better idea about overall system performance quickly.
|
||||
|
||||
However, sometimes its very tricky to find an application/process that consuming lots of system resources is a bit difficult under top. Because top command doesn’t have a ability to highlights programs that are eating too much of **CPU**, **RAM**, other resources.
|
||||
|
||||
For keeping such approach, here we are bringing a powerful system monitor program called “**Glances**” that automatically highlights programs that are utilizing highest system resources and providing maximum of information about Linux/Unix server.
|
||||
|
||||
### What is Glances? ###
|
||||
|
||||
**Glances** is a cross-platform command-line curses-based system monitoring tool written in **Python** language which use the **psutil** library to grab informations from the system. With Glance, we can monitor **CPU, Load Average, Memory, Network Interfaces, Disk I/O, Processes** and **File System** spaces utilization.
|
||||
|
||||
Glances is a free tool and licensed under **GPL** to monitory **GNU/Linux** and **FreeBSD** operating systems. There are lots of interesting options available in Glances as well. One of the main features we have seen in Glances is that we can set thresholds (**careful**, **warning** and **critical**) in configuration file and informations will be shown in colors which indicates the bottleneck in the system.
|
||||
|
||||
### Glances Features ###
|
||||
|
||||
- CPU Informations (user related applications, system core programs and idle programs.
|
||||
- Total memory Information including RAM, Swap, Free memory etc.
|
||||
- The average CPU load for the past 1min, 5mins and 15 mins.
|
||||
- Network Download/Upload rates of network connections.
|
||||
- Total number of processes, active ones, sleeping processes etc.
|
||||
- Disk I/O related (read or write) speed details
|
||||
- Currently mounted devices disk usages.
|
||||
- Top processes with their CPU/Memory usages, Names and location of application.
|
||||
- Shows the current date and time at bottom.
|
||||
- Highlights processes in Red that consumes highest system resources.
|
||||
|
||||
Here is an example screen grab of Glances.
|
||||
|
||||

|
||||
|
||||
### Installation of Glances in Linux/Unix Systems ###
|
||||
|
||||
Although it’s a very young utility, you can install “**Glances**” in **Red Hat** based systems by turning on [EPEL repository][3] and then run the following command on the terminal.
|
||||
|
||||
#### On RHEL/CentOS/Fedora ####
|
||||
|
||||
# yum install -y glances
|
||||
|
||||
#### On Debian/Ubuntu/Linux Mint ####
|
||||
|
||||
$ sudo apt-add-repository ppa:arnaud-hartmann/glances-stable
|
||||
$ sudo apt-get update
|
||||
$ sudo apt-get install glances
|
||||
|
||||
### Usage of Glances ###
|
||||
|
||||
To start, issue the basic syntax on the terminal.
|
||||
|
||||
# glances
|
||||
|
||||

|
||||
|
||||
Press ‘**q**‘ or (‘**ESC**‘ or ‘**Ctrl&C**‘ also works) to quit from Glances terminal. Here, is the another screen grab taken from the **CentOS 6.5** system.
|
||||
|
||||

|
||||
|
||||
y default, interval time is set to ’**1**‘ second. But you can define the custom interval time while running glances from the terminal.
|
||||
|
||||
# glances -t 2
|
||||
|
||||
### Glances Color Codes ###
|
||||
|
||||
Meaning of Glances color code:
|
||||
|
||||
- GREEN: OK (everything is fine)
|
||||
- BLUE: CAREFUL (need attention)
|
||||
- VIOLET: WARNING (alert)
|
||||
- RED: CRITICAL (critical)
|
||||
|
||||
We can set thresholds in configuration file. By default thresholds set is (**careful=50, warning=7**0 and **critical=90**), we can customized as per our needs. The default configuration file is located at ‘**/etc/glances/glances.conf**’.
|
||||
|
||||
### Glances Options ###
|
||||
|
||||
Besides, several command line options, glances provides many more **hot keys** to find output information while glances is running. Below are the list of several hot keys.
|
||||
|
||||
- a – Sort processes automatically
|
||||
- c – Sort processes by CPU%
|
||||
- m – Sort processes by MEM%
|
||||
- p – Sort processes by name
|
||||
- i – Sort processes by I/O rate
|
||||
- d – Show/hide disk I/O stats ols
|
||||
- f – Show/hide file system statshddtemp
|
||||
- n – Show/hide network stats
|
||||
- s – Show/hide sensors stats
|
||||
- y – Show/hide hddtemp stats
|
||||
- l – Show/hide logs
|
||||
- b – Bytes or bits for network I/Oools
|
||||
- w – Delete warning logs
|
||||
- x – Delete warning and critical logs
|
||||
- x – Delete warning and critical logs
|
||||
- 1 – Global CPU or per-CPU stats
|
||||
- h – Show/hide this help screen
|
||||
- t – View network I/O as combination
|
||||
- u – View cumulative network I/O
|
||||
- q – Quit (Esc and Ctrl-C also work)
|
||||
|
||||
### Use Glances on Remote Systems ###
|
||||
|
||||
With the Glances, you can even monitor remote systems too. To use ‘**glances**‘ on remote systems, run the ‘**glances -s**‘ (-s enables server/client mode) command on the server.
|
||||
|
||||
# glances -s
|
||||
|
||||
Define the password for the Glances server
|
||||
Password:
|
||||
Password (confirm):
|
||||
Glances server is running on 0.0.0.0:61209
|
||||
|
||||
**Note** : Once, you issue ‘**glances**‘ command, it will prompt you to define the password for the Glances server. Define the password and hit enter, you see glances running on port **61209**.
|
||||
|
||||
Now, go to the remote host and execute the following command to connect to a Glances server by specifying IP address or hostname as shown below. Here ‘**172.16.27.56**‘ is my glances server IP Address.
|
||||
|
||||
# glances -c -P 172.16.27.56
|
||||
|
||||
Below are few notable points that user must know while using glances in server/client mode.
|
||||
|
||||
* In server mode, you can set the bind address -B ADDRESS and listening TCP port -p PORT.
|
||||
* In client mode, you can set the TCP port of the server -p PORT.
|
||||
* Default binding address is 0.0.0.0, but it listens on all network interfaces at port 61209.
|
||||
* In server/client mode, limits are set by the server side.
|
||||
* You can also define a password to access to the server -P password.
|
||||
|
||||
### Conclusion ###
|
||||
|
||||
**Glances** is a much resources friendly tool for most users. But if you’re a system administrator who’d like to quickly get overall “idea” about systems by just glancing at command line, then this tool will be must have tool for system administrators.
|
||||
|
||||
--------------------------------------------------------------------------------
|
||||
|
||||
via: http://www.tecmint.com/glances-an-advanced-real-time-system-monitoring-tool-for-linux/
|
||||
|
||||
译者:[译者ID](https://github.com/译者ID) 校对:[校对者ID](https://github.com/校对者ID)
|
||||
|
||||
本文由 [LCTT](https://github.com/LCTT/TranslateProject) 原创翻译,[Linux中国](http://linux.cn/) 荣誉推出
|
||||
|
||||
[1]:http://www.tecmint.com/command-line-tools-to-monitor-linux-performance/
|
||||
[2]:http://www.tecmint.com/12-top-command-examples-in-linux/
|
||||
[3]:http://www.tecmint.com/how-to-enable-epel-repository-for-rhel-centos-6-5/
|
@ -0,0 +1,77 @@
|
||||
What if Linus Torvalds Would Have Accepted Job Proposal of Steve Jobs?
|
||||
================================================================================
|
||||
**Linus Torvalds**, the man behind the wonderful project **Linux** and **Git** was offered job by **Steve Jobs**, the founder of **Apple Inc**. **Torvalds** never met **Bill Gates**, the founder of **Microsoft** but he met **Jobs** in the year **2000** when he was working with **Transmeta** corporation, an American fabless semiconductor company. **Jobs** invited **Torvalds** to **Cupertino Camps** of Apple. Torvalds was offered thick salary and remarkable position within the organization and was supposed to do **Non-Linux** things at Apple. This was the point, Torvalds disagreed. Moreover Torvalds did not like the Mac Kernel, **Mach**.
|
||||
|
||||

|
||||
|
||||
### What if Torvalds would have accepted the proposal? ###
|
||||
|
||||
That day if **Torvalds** would have accepted the proposal of **Steve Jobs**, today the world would not been the same. We wont be having **Linux, Kindle, Android**, more than half of Internet. More than **90%** of servers of Today. Literally the picture of world would have been very different, as it is today.
|
||||
|
||||
### ill-effect of Proposal rejection by Torvalds, if any? ###
|
||||
|
||||
It would have been great seeing two great minds **Torvalds** and **Jobs** working together. The world would have benefited in some other way but surely on the risk loosing Linux.
|
||||
|
||||
### Torvalds as a He Is ###
|
||||
|
||||
Torvalds is known to be arrogant and for giving controversial statements, at times. But his contribution to the world is unmatched. He gave **Linux** and **Git** for free. There are too many statements against Torvalds that he never gave a part of his earning to make world a better place, but the fact remains he has given what others can not even think of. He gave his master piece development for Free. He could have earned Million and Millions of bucks. He gave what he was having to the whole world without any discrimination.
|
||||
|
||||
### Torvalds as a Human Being ###
|
||||
|
||||
The chief architect of Linux Kernel is a nice and interesting person who talks about every Genre of the world. He write blogs, talk about his kids, Halloween, his native place, etc. You can follow him on his blogs and Google Plus.
|
||||
|
||||
#### Follow at Blogs ####
|
||||
|
||||
- [http://torvalds-family.blogspot.in/][1]
|
||||
- [http://www.linuxfoundation.org/blogs/linus-torvalds][2]
|
||||
|
||||
#### Follow on Google Plus ####
|
||||
|
||||
- [https://plus.google.com/+LinusTorvalds/posts][3]
|
||||
|
||||
### Lesser Known Truth about Linus Torvalds ###
|
||||
|
||||
- Linus Annual Salary : $10 Million Per Year
|
||||
- Linus Total Worth : $150 Million
|
||||
- Creator of Revision Control System and Git besides Kernel.
|
||||
- Torvalds first priority is FOSS, but he never minds using Proprietary software to get best result.
|
||||
- He prefers Fedora, for its good support for PowerPC processor architecture and said this in an interview in 2008 and later in 2012.
|
||||
- Linux Foundation sponsors Torvalds, so that Linux can give all his time for the development of Linux.
|
||||
|
||||
### Famous Quotes of Linus ###
|
||||
|
||||
Some of famous quotes and saying of Torvalds.
|
||||
|
||||
#### Quotes ####
|
||||
|
||||
> “Torvalds don’t wear specs, he has configured X11 to the point, he don’t need any.”
|
||||
>
|
||||
> “When you say, I wrote a program that crashed Microsoft Windows, People just stares at you blankly and say, Hey! I got those with the system, for free.”
|
||||
>
|
||||
> Only Wimps use tape drive to maintain backup. Real men just upload their stuff on Public FTP and let the whole world make copies for you.”
|
||||
>
|
||||
> “See, you don’t need to be a good programmer to create a system like Linux, you need to be a sneaky bastard too.”
|
||||
|
||||
#### Saying ####
|
||||
|
||||
> “Making Linux available under General Public Licence is the best thing I did.”
|
||||
|
||||
### Conclusion ###
|
||||
|
||||
Some people speaks, If Torvalds, would not have written the **Kernel**, somebody say “Michel” would have written this and we would have been calling it **Michel OS**, Today. Saying this are not we underestimating his capabilities, his sacrifice and his wonderful job.
|
||||
|
||||
Torvalds is a **Messiah** and a **Geek**, a **Developer**, an **Admin, NASA Research Lab, White-Hat Hacker**, etc knows what **Mr. Torvalds** did. There is nothing wrong in **torvalds**‘ Lord feeling in his self made world. The world will always be thankful to him
|
||||
|
||||
That’s all for now. I will be here again with another interesting article, you people will love to read. Please share your valuable feedback in the comment section below.
|
||||
|
||||
--------------------------------------------------------------------------------
|
||||
|
||||
via: http://www.tecmint.com/what-if-linus-torvalds-would-have-accepted-job-proposal-of-steve-jobs/
|
||||
|
||||
译者:[译者ID](https://github.com/译者ID) 校对:[校对者ID](https://github.com/校对者ID)
|
||||
|
||||
本文由 [LCTT](https://github.com/LCTT/TranslateProject) 原创翻译,[Linux中国](http://linux.cn/) 荣誉推出
|
||||
|
||||
[1]:http://torvalds-family.blogspot.in/
|
||||
[2]:http://www.linuxfoundation.org/blogs/linus-torvalds
|
||||
[3]:https://plus.google.com/+LinusTorvalds/posts
|
Loading…
Reference in New Issue
Block a user