Linux Delete duplicate lines of code
In text processing, you often delete duplicate rows, and here are three ways
First, with Sort+uniq, attention, simple uniq is not.
?
1
Sort-n Test.txt | Uniq
Second, with the
in Linux with vi Edit and modify file configuration without color display file content, especially some keywords can not be color display, to configure our service process caused great inconvenience. "In fact, the main is VI itself without color,
"Ideas for solving problems"
For this problem, there is a more feasible way, is through the virtual machine to solve. The more well-known virtual machine software VirtualBox provides a Linux version, which can be used on Linux to use Windows, which
At the time of installation, the customer did not choose to install KERNEL-SMP, the system will be installed by default as a single processor core, users can upgrade the system by adding a multiprocessor core module.
Specific steps:
1, start red
Because the original installation system design is unreasonable, some zoning is too small, as well as network communication failures and other causes of log file speed growth and other reasons can be displayed as disk space full, resulting in the
Vsftp is a GPL-based UNIX-like system on the use of FTP Server software, its full name is very secure FTP from this name can be seen, the original intention of the creator is code security.
The following whole procedure is demonstrated under CentOS
The fuser command displays the process process number with the specified file or file system, and by default each filename is followed by a letter to indicate the type
-L Display Signal
-4 IPv4
-6 IPV6
-A All files related to the program
-K
Although the Linux system development time is not long, but the Linux system is more and more popular with computer users, resulting in many people start to learn Linux, learning Linux, you may encounter the Linux network card installation problem,
Introduction: Because of learning Linux for a long time, nothing to tell about the Linux system problems hope to help. Linux system has many advantages in function, price or performance, however, as an open operating system, it inevitably has some
Step 2: Create a Linux System Instance
Here are only a few examples of new purchases. If you have a mirror, you can use a custom mirror to create an instance.
New Purchase instance operation steps:
Log on to the Cloud Server Management Console.
#!/bin/bash
# by Kerryhu
# mail:king_819@163.com
# blog:http://kerry.blog.51cto.com
# Please manual operation Yum of before operation .....
I. Confidence-building relationship
192.168.9.203 for the management machine
192.168.9.201 192.168.9.20
Use the Chkconfig command to view services (or programs) that start automatically at different startup levels, with the following command format:Chkconfig--listThe output may be as follows:OpenVPN 0: Close 1: Open ... 6: Close (0-6 is the starting
There are two types of Linux commands in the system: built-in shell commands and Linux commands.
First, we introduce a noun "console", which is the human interface that we usually see using the character manipulation interface, such as DOS. We say
If you're a Linux system administrator, then there's no question that you have to spend a lot of time on the command line: Install and uninstall software, monitor system status, copy, move, delete files, check errors, and so on. Most of the time you
These time stamps include
The code is as follows:
Mtime file content Last modified time
Atime the time the file was read or accessed
CTime file state Change time
The meaning of Mtime and atime is easy to understand, and ctime needs more
The Astaro security Linux firewall is used to manage data traffic between the internal network and the external network. Administrators can control each protocol, blocking or allowing access to any one of the internal networks, servers, services,
As a mechanism of enforcing access control between network and system, firewall is an important means to ensure network security. Different firewall systems can be tailored to different requirements and application environments. Firewalls can be
Grammar
1. The operation of the chain
Create a new chain (-N).
Deletes an empty chain (-X).
Change the principle of a built-in chain (-P).
Lists the rules in a chain (-l).
Clears all rules in a chain (-f).
The packet-byte (byte) register (-Z) of all
Shanghai Computer Virus Prevention Service center recently issued a warning: a recent pass U disk, mobile disk and other mobile storage devices spread the dangerous virus "halogen pig" (WIN32.IUHZU.A) activities frequently, users in the use of
The program runs using a set of languages that require character set (data) and font (display), locale is a language environment defined by a software runtime based on the language used by the computer user, the country or region, and the local
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.
A Free Trial That Lets You Build Big!
Start building with 50+ products and up to 12 months usage for Elastic Compute Service