Linux File Log filtering operations

Statistics view files and filter logs1. Count the number of independent IPs in the *.log log file:' {print $} ' Test.log | Sort | Uniq | Wc-l2. #查询访问最多的前10个ip' {print $} ' /access.log | sort | uniq-c | sort-nr | head-Ten3. #查看某段时间的" 2017:0[3-6] "4,

Linux Fundamentals-Disk Management-05

The previous article, the contents of the chat, or on the disk and partition.Today's content, the certificate refers to the "file system".For a "file system", which parts are composed of, and eachPart of the role of the relationship between them,

Linux Learning Notes---grep

Say grep first (search filter)1. Command format:grep [option] Pattern file2. Command parameters:-A Do not ignore binary data-a displays the number of rows, in addition to displaying the column that conforms to the template style, and displays the

linux--grep command

2. UseThe grep command in a Linux system is a powerful text search tool. This command is a global lookup regular expression and prints command line commands. grep consists of two egrep and grep.2. Formatgrep [Options] File3. Main parameters (Common)

Linux Common commands

Firewall operations IP address operation File operations Redis Installation and simple configuration View network InformationIfconfigContos71. FirewallsTemporarily shut down the firewallSystemctl Stop FirewalldPermanent Firewall

Installing Elasticsearch on Linux

Build Environment Centos7 andFirst upload the tar package to/usr/local/mypackage/elasticsearch via the toolUnzip the TAR packageAfter decompression, go to config directory, edit configuration fileVI elasticsearch.ymlLocate the following code snippet

Linux time synchronization

Involved/usr/sbin/ntpdate Time SynchronizationTzselec Choosing a Time zoneVi/etc/sysconfig/clock Clock configuration fileUse remote to use ntpdate time.windows.com sync time, Discover time is different from native timeSuspect is a time zone problem,

Linux Series Tutorials (19)--linux File System Management manual Partitioning

In the previous blog we first introduced why the hard disk partition, as well as several types of Linux system partition, and then introduced the Linux system several common file system commands, finally explained the Mount command, and through the

Linux sed command detailed

1. Introduction to SEDSed is an online editor that processes a single line of content at a time. When processing, the currently processed rows are stored in a temporary buffer called pattern space, followed by the SED command to process the contents

Fix linux Chinese garbled characters

Fix linux Chinese garbled characters Today, I suddenly found a server with a log garbled with php output. Then I checked that php is garbled. I downloaded the local windows and it showed normal. I ctrl + c and then ctrl + v to the server, it's

CentOS 7 modify the time zone

CentOS 7 modify the time zone The style of most software in the Linux system (I specifically refer to the release version, but did not mention the kernel) is that the backward compatibility will not be carefully considered. For example, if you can

Centos Network Management

Centos Network ManagementCentos6, 7 host name Modification Centos6 host name modification: [centos@~]# hostname centos6[centos@~]# vi /etc/sysconfig/networkHOSTNAME=centos6 After the host name is modified, add the modified host name to

CetOS 7.3 rpm/yum/tar command

gpg

CetOS 7.3 rpm/yum/tar command1. rpm command Rpm package, composed of "-", "., package name, version information, version number, run platform query of installed software information rpm-qa query of installed software rpm-qf file name absolute path

Mkdir command in CentOS

Mkdir command in CentOS Mkdir: the abbreviation of make directory (ies), used to create a directory1. Syntax Mkdir [OPTION]... DIRECTORY Note: option is a selection and optional. directory is the name of the directory to be created.2. Options 3.

Use ssh in CentOS to change the default port number and implement password-free remote login

Use ssh in CentOS to change the default port number and implement password-free remote login Recently, I have reviewed the basic usage of the firewall management tool iptables, which involves adding or deleting firewall policies on ports. I am not

Path of the package downloaded during yum installation in CentOS

Path of the package downloaded during yum installation in CentOS[Root @ Rhel5 packages] # cat/etc/yum. conf | grep cachedirCachedir =/var/cache/yumThis is the place to save,[Root @ Rhel5 packages] # llTotal 100-Rw-r -- 1 root 94864 Nov 13 hwbrowser-0

Install Ubuntu16.04 LTS Linux on a virtual machine in VMware14.0.0 (detailed steps for multiple images ),

Install Ubuntu16.04 LTS Linux on a virtual machine in VMware14.0.0 (detailed steps for multiple images ), I. Preparations 1. The VMware14 software is successfully installed; 2. Go to the Ubuntu official website to download Ubuntu LTS image files. Ii.

Add the scheduled Task Command crontab-e in CentOS

Add the scheduled Task Command crontab-e in CentOSRestart teamviewer every two hours to prevent external connection to the console and execute: crontab-e // enter the timer editing page. Add the following command: control + c! Wq save 0 */2 ***

Search for a string in all files in linux

Search for a string in all files in linuxCheck whether all files in the directory contain a certain stringFind. | xargs grep-ri "IBM"Check whether all files in the directory contain a certain string and print only the file name. Find. | xargs

Set nginx + php to upload large files

Set nginx + php to upload large files 1. To allow php to upload large files, modify the configuration file php. ini as follows: File_uploads = on; // whether to allow file upload over HTTP. The default value is ONupload_tmp_dir; // The file is

Total Pages: 5467 1 .... 3569 3570 3571 3572 3573 .... 5467 Go to: GO

Contact Us

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

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.