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
1, open Sougoupinyin's official website: in Baidu official website or Hao123.com's official website input sougoupinyin, search, open the official website of which
2, in the corresponding column above select "Input Method Linux version"
DNS refers to the computer domain Name System, which consists of a domain name resolver and a domain name server, which provides DNS services to DNS servers. General operation of the domain name preferably has two or more DNS servers, respectively
What is the Linux timing shutdown command? in the previous tutorial, we shared the Win7 system timing shutdown command to use the method, to the netizens brought a lot of convenience. There are also users of Linux systems, so they are curious: The
The following is the method of Baidu, fsck cautious use, in addition fuser can solve Umount encounter device busy situation
Mount;d f-h Vi/etc/fstab is a number of commands that are often used when you encounter read-only and file systems
But the
In the process of learning Linux, I often put soft hard links, so today specializes in a number of data, and then integrated in their own blog, easy to review later, view.
On the one hand also because saw Vamei Linux concept and System series
Question: As a result of scientific research requirements, most of our department did not use Windows system, and the use of Linux, is not accustomed to boot is a dark interface, like the legendary DOS. Fortunately, the scientific research of those
For a single file, it is easy to use the SED command. If you need to replace all the files under a specific folder, you can easily handle the combination of grep and sed into a single command.
The grep command can find the contents of a single file
We know that under Windows we can use Remote Desktop Connection to control other computers,
But Linux Remote Desktop Connection?
But before you say how to connect, you have to be clear about a concept, why my title is not used in Linux Remote
The essence of a server is to provide access to a variety of services. Make the server run only the required services, and turn off services that are not in use. This will not only release some system resources, but also make the server more secure.
News about the Linux operating system is often found in the IT industry publications. Much of the news is about its security features. But in fact, the claim that "Linux is the safest of all operating systems" is exaggerated. While many Linux
To view the host name of Ubuntu, you can view it by command:
Hostname
Modifying the host name requires two files to be changed:
/etc/hostname
/etc/hosts
In the hostname file, change the original host name to a new one. In the Hosts file, you
How to install HP computer Kylin Linux System
1, will engrave the compact disc into the optical drive, restarts the computer, the boot F9 chooses the CD-ROM to boot. After booting into the HP recovery interface, directly select Restore System from
Linux crontab do not perform problem troubleshooting
Problem Description:
A crontab is configured on the CentOS, so that it executes once a day, the configuration syntax is fine, but the log that the program executes is not found, so the program
General Process:
1. Add header file Dirent.h
Declares the structure body pointer struct dirent * PTR;
Declares a dir pointer dir * FD;
2. Analysis command line
3. Open catalog File
Using the Opendir () parameter to parse the second parameter
Linux system operation for a long time, will produce a lot of watching video, download files left by the cache, if the occasional cleanup will cause the system to become very slow, the following small series to introduce the Linux release caching
Microsoft
More than 500 government departments in Germany give up Microsoft's switch to Linux
Computer World Network According to the Associated Press, a senior German government official said more than 500 government departments have applied to
Linux system static Network configuration
After starting the Linux system, first look at the network configuration of the machine:
1, Ifconfig understand the network card information, view ETHX
2, sudo vim/etc/network/interfaces
Configure
When a new Linux server is configured, if you need to configure iptables, you are typically configured with the following command:
First, install and start the firewall
[Root@linux ~]#/etc/init.d/iptables start
When we use Iptables to add rules,
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