20140212-1 选题

This commit is contained in:
DeadFire 2014-02-12 16:46:45 +08:00
parent 2f41d423f0
commit 4d2763e484
3 changed files with 202 additions and 0 deletions

View File

@ -0,0 +1,119 @@
Linux more Command - Display Long Text File Per page at a Time
================================================================================
If you are used to working with Linux, you will find a lot of file text in Linux world. Configuration files and log files are usually kept in text format. But those file are usually have long content. You can not view them all in one page. So we need to to pagination to those file. And to do that, we can use **more** command.
### What is more command ###
More command is a command for displaying a long text file per page at a time. More command is a built-in command in Linux.
### How to use more ###
To use more command, we just need to type :
$ more file_name
For example we want to see the content of syslog file located in /var/log directory. We can type :
$ more /var/log/syslog
![More command](http://linoxide.com/wp-content/uploads/2014/01/more.png)
We see that **an indicator on the bottom left**. It show us number 0%. It means that the file is long enough, so the first page is 0% of the total page. To scroll down, use space button. Then we see that the indicator number is increased.
![Scroll page](http://linoxide.com/wp-content/uploads/2014/01/more_2.png)
### Limit lines per page ###
When you run more command, it will fill your screen with the content of the file you are seeing using more. You can limit it into some lines for each page. To do this you can use **-num option**.
For example, you want to **limit the lines only 12 lines** for each page. Then you can type :
$ more -12 /var/log/syslog
![Limit 12 lines only](http://linoxide.com/wp-content/uploads/2014/01/more_12.png)
Now it will limit 12 lines per page. When you press spacebar to scroll down, it will show you more 12 lines.
### Display user message ###
As we knew, more will display an indicator at the bottom left to show our position in percentage. For those who run more at the first time, he/she may guess how to scroll the page down. To avoid this, we can use **-d** option that will make more command display a user message like this “[**Press space to continue, q to quit.**]” .
![More with -d option](http://linoxide.com/wp-content/uploads/2014/01/more_d1.png)
If user press a button other than button **space and q** , then more will display a warning message **“[Press h for instructions.]”** .
![More displaying help message](http://linoxide.com/wp-content/uploads/2014/01/more_d2.png)
If you press h button, it will display a help message :
![Display help](http://linoxide.com/wp-content/uploads/2014/01/more_dh.png)
One of the interesting command is the **b** button. **b button allow you** to go back to previous page. In other word, b button allow you **to scroll up**.
You can know that you are in the previous page from the line **…backup 1** page at the top left area.
![Scroll up on More](http://linoxide.com/wp-content/uploads/2014/01/more_back.png)
### Suppress scroll ###
With **-c** option, more will not scroll the page. It will clear the previous page and put the next page or lines there.
$ more -10 -c lynis.log
![Suppress scroll](http://linoxide.com/wp-content/uploads/2014/01/more_c.png)
If you press space button, the next page or lines is still at the same size.
![Suppress scroll](http://linoxide.com/wp-content/uploads/2014/01/more_c2.png)
### Squeeze multiple blank lines ###
To squeeze it, we can use **-s** option. Heres a sample :
![File with blank lines](http://linoxide.com/wp-content/uploads/2014/01/more_s.png)
When we add **-s** option :
$ more -s doc_30.txt
![Squeeze blank lines](http://linoxide.com/wp-content/uploads/2014/01/more_s2.png)
### Search string ###
If your log file is long enough, its not easy to find a string that you want. Search string can help you. Using **+/string** can search a string for you and put the keyword on the beginning of the line. Let say we want to search “**dhclient**” in **/var/logs/syslog** file. Then the syntax is :
$ more +/dhclient /var/log/syslog
![Search string](http://linoxide.com/wp-content/uploads/2014/01/more_string.png)
Then to continue the search on the next line, you can press **/ button** following by dhclient word.
### Display content start with specific line ###
You can also display a content of file start with specific line using **+num** option. For example we have a file with 15 lines inside it.
![Multiple lines file](http://linoxide.com/wp-content/uploads/2014/01/more_num1.png)
Then we want to display a file named doc_30.txt starting from the line number 5. The command will be like this :
$ more +5 doc_30.txt
![Start with specific lines](http://linoxide.com/wp-content/uploads/2014/01/more_num2.png)
### Can we use it to display binary file? ###
**The answer is No**. More will give you a message about this. Heres a sample.
![Displaying binary file](http://linoxide.com/wp-content/uploads/2014/01/more_binary.png)
### Conclusion ###
More is one of the basic tool to display a content of text file. More can not be used to display binary file. As usual, we can always type **man more** or **more --help** to explore more detail about the usage of more command.
--------------------------------------------------------------------------------
via: http://linoxide.com/linux-command/linux-more-command/
译者:[译者ID](https://github.com/译者ID) 校对:[校对者ID](https://github.com/校对者ID)
本文由 [LCTT](https://github.com/LCTT/TranslateProject) 原创翻译,[Linux中国](http://linux.cn/) 荣誉推出

View File

@ -0,0 +1,43 @@
Ubuntu Wallpaper Contest Offers Artists Chance to Feature on Millions of Desktops
================================================================================
**Ubuntu is giving amateur and professional artists alike the chance to have their work seen by millions of people across the world.**
![](http://www.omgubuntu.co.uk/wp-content/uploads/2014/02/ggg-350x200.png)
The Ubuntu 14.04 wallpaper contest [has opened for entries][1], and invites anyone with an interest in photography or digital design to imprint their passion into pixel form and take part.
A selection of the best submissions will be selected to ship as part of the stock Ubuntu 14.04 LTS desktop, due for release in April.
Ubuntus wallpaper competition has become a traditional fixture of the development cycle having run twice a year since 2009 and the release of Ubuntu 9.10 Karmic Koala.
### No Theme ###
Despite [earlier discussions][2] hinting at a thematic arc, the 14.04 contest **does not feature an over-arching theme** or brief to which submissions should adhere — which is good news for fans of diverse and varied backgrounds.
Thats not to say its a free for all. Those taking part should keep to the set of sensible guidelines listed on the Ubuntu Wallpaper Contest Wiki page.
Entries should be added to the [Ubuntu 14.04 Wallpaper pool on photo-sharing site Flickr][3] and are limited to one submission per person.
Submissions must be licensed under [Creative Commons ShareAlike 3.0][4], with all attribution declared if elements are remixing or riffing off of other work.
Other than that the usual straightforward guidelines apply:
- Keep it simple: avoid busy designs, too many shapes or clashing colours
- Use a single point of focus to draw the eye in
- Design around the Unity interface elements
- Ensure youre designing at a minimum resolution of 2560 x 1600
Deadline for all submissions is **March 5, 2014 at 18:00 GMT**. Winning entries will be selected by a panel comprising of the previous releases chosen artists, with their final choices revealed on March 11, 2014, ahead of the Trusty Tahr UI freeze.
--------------------------------------------------------------------------------
via: http://www.omgubuntu.co.uk/2014/02/ubuntu-14-04-lts-wallpaper-contest
译者:[译者ID](https://github.com/译者ID) 校对:[校对者ID](https://github.com/校对者ID)
本文由 [LCTT](https://github.com/LCTT/TranslateProject) 原创翻译,[Linux中国](http://linux.cn/) 荣誉推出
[1]:http://hungfu.wordpress.com/2014/02/10/ubuntu-14-04-needs-a-splash-of-colour-and-you-can-help/
[2]:http://www.omgubuntu.co.uk/2014/02/ubuntu-14-04-wallpaper-contest-changes
[3]:http://www.flickr.com/groups/2535978@N21
[4]:http://creativecommons.org/licenses/by-sa/3.0/

View File

@ -0,0 +1,40 @@
Untangle Next Generation (NG) Firewall Is a Complete Linux Solution
================================================================================
**Untangle Next Generation (NG) Firewall 10.1, a Linux-based network gateway with pluggable modules for network applications like spam blocking, web filtering, anti-virus, anti-spyware, intrusion prevention, VPN, SSL VPN, and firewall, has been released and is available for download.**
![](http://i1-news.softpedia-static.com/images/news2/Untangle-Next-Generation-NG-Firewall-Is-a-Complete-Linux-Solution-425968-2.jpg)
Untangle Next Generation (NG) Firewall used to be called the Untangle gateway, but the developers changed its name to better reflect its features.
The NG Firewall now unites a number of functions under its hood and, according to the developers, the applications inspect network traffic simultaneously, greatly reducing the resource requirements of each individual application.
Untangle Next Generation (NG) Firewall features a dedicated filter, advanced bandwidth management features, support for secure VPN connections, control per group and per user, and various support services.
### Highlights of Untangle Next Generation (NG) Firewall 10.1: ###
- Users can no longer download applications and the entire system has been removed. The applications will be preinstalled along with the platform;
- Support has been added for basic VRRP configuration which would allow for hot/cold high availability of multiple Untangle servers;
- Web Filter is now capable to display a block page when blocking HTTPS, even if the dedicated HTTPS Inspector is not being used;
- Web Filter HTTPS blocking (without HTTPS Inspector) has been improved. In this latest version of Untangle, the HTTPS traffic will be categories via the SNI first. As a fallback, the distribution will categorize by fetching the certificate from the HTTPS site and defining the session based on the CN in the certificate, a process which should be a lot more accurate.
- Filtering based on column values or any value is now available;
- Global filtering is now available with "search" box;
- The Ad Blocker performance has been improved.
Check the official [announcement][1] for a complete list of changes and improvements.
### Download Untangle Gateway Platform 10.1: ###
- [Untangle Gateway Platform 10.1 (ISO) 64-bit[iso]][2] [565 MB]
- [Untangle Gateway Platform 10.1 (ISO) 32-bit[iso]][3] [561 MB]
--------------------------------------------------------------------------------
via: http://news.softpedia.com/news/Untangle-Next-Generation-NG-Firewall-Is-a-Complete-Linux-Solution-425968.shtml
译者:[译者ID](https://github.com/译者ID) 校对:[校对者ID](https://github.com/校对者ID)
本文由 [LCTT](https://github.com/LCTT/TranslateProject) 原创翻译,[Linux中国](http://linux.cn/) 荣誉推出
[1]:http://wiki.untangle.com/index.php/10.1.0_Changelog
[2]:http://download.untangle.com/untangle_1010_x64.iso
[3]:http://download.untangle.com/untangle_1010_x32.iso