Use cat to count apache log ip addresses

To use cat to count the ip address of an apache Log, extract the IP address with the highest access volume from the log. Use shell. Www.2cto.com logs are as follows (for example, the data volume is small): $ more aa.txt 127.0.0.1-frank [10/Oct/2000:

Linux Kernel adjustment and Maintenance

Linux adjusts and maintains the kernel as an interface between user programs and system hardware. The kernel plays an important role in ensuring that Red Hat Enterprise Linux is widely used in physical and virtual hardware environments. Www.2cto.com:

Create and delete files and folders in ubuntu, and forcibly clear the recycle bin

Create and delete files and folders in ubuntu, force clear Recycle Bin Method mkdir directory name => create a directory www.2cto.com rmdir empty directory name => delete an empty directory rm file name => delete a file or multiple files rm-rf not

Highlight tags in vim in linux

In vim in linux, make the tags highlight tag * tag-highlight * www.2cto.com. If you want to highlight all the tags in the file, you can use the following ing. -- generate the tags. vim file and highlight the tag. -- only highlight tags based on the

Set and modify CentOS system IP address details

Setting and modifying the IP address of the CentOS system when we use the CentOS system, we may feel that some settings are not suitable for ourselves. Although they do not cause large errors, they do cause us a lot of trouble, next I will give you

Install ant in linux

Install ant apache ant in linux Web site: http://ant.apache.org/www.2cto.com: apache-ant-1.8.4-bin.tar.gzHttp://labs.mop.com/apache-mirror/ant/binaries/apache-ant-1.8.4-bin.tar.gz OSC address: Apache Ant http://www.oschina.net/p/apache+ant 1 cp

RHEL6.3 Samba Server Installation Configuration

RHEL6.3 Samba Server Installation configuration 1. install the Samba Software Package www.2cto.com # yum-y install samba-client samba-common samba-winbind-clients 2. Start and view the Samba server status # service smb start # service smb status 3.

Determine the root user in linux

In linux, how does one determine whether the current user is root? Determine whether the current user is root www.2cto.com Shell code Java code # ------------------------------ root user check --------------------- start if ['id-U'-ne 0]; then echo "

Ubuntu 12.04.1 LTS Configuration

Ubuntu 12.04.1 LTS configuration 1. Install and uninstall the open source driver www.2cto.com sudo apt-get -- purge remove NVIDIA-* sudo apt-get -- purge remove xserver-xorg-video-nouveau sudo apt -get autoremove uninstall the official drive sudo sh

Linux environment variable PATH Configuration

Alias and absolute PATH/bin/rm are mentioned before the PATH configuration of Linux environment variables. Then, you realize that no, why did we directly run the command when we input many commands, without the absolute path to use these commands?

Linux File time

The time of the Linux sketch file is frequently asked about the document time during interviews with relevant Linux posts.Linux documents are generally divided into three types of time: Access time-atime (Access time ),Modification time-mtime

Configure routes for multiple NICs in linux

In linux, multiple network adapters are configured. in linux, When you debug the set-top box at www.2cto.com, you encounter an interesting scenario: the set-top box has two NICs: eth0 and usb0; when starting, Mount eth0 to nfs. After starting,

Mount the hard disk to the mount point

Mount the hard disk to the mount point fdisk-l to view all the hard disk information www.2cto.com df-h to view the status of the mounted hard disk. For example: mount/dev/sdb to/mnt/sdb-create a file system for the disk: mkfs. ext3/dev/sdb-create a

When logging on from vnc view, the system prompts connection refused (10061) Solution

1. Graphic Interface If connection refused (10061) is prompted when you log on from the vnc view, it is because of a linux Firewall problem. log on to the centos System and choose System> Preferences> Remote Desktop, check the two items in sharing.

Common Linux search commands

1. findFind is the most common and powerful search command. You can use it to find any file you want. The find command allows you to conveniently find the required specified file in the use and management of Linux systems.The format of find is as

Object-oriented Shell scripts

Do you still remember the regular expression that used to calculate prime numbers? The world of programming is so interesting that you will always be able to see something special. Have you ever thought that you can put your variables and functions

Modify SSH port

Modify port 22 in Linux In Linux, the default SSH port is 22. For security reasons, it is necessary to modify port 22. Now, the port is changed to 60000. The modification method is as follows:Find Port 22 in/etc/ssh/sshd_config, change it to 60000,

References in shell

  Quotes in shell 1. Double quotation marks $, ', \, Retain special meaning Note that escape characters such as \ n are not supported by default when echo is not added. Supported by printf [Root @ Centos5 test] # echo "\ n" \ N [Root @ Centos5 test]

Complete Nagios3 configuration document (Chapter 1)

  Chapter 1: simple and quick nagios Installation 1.1 prepare the Software Package Make sure that you have the root permission on the machine before installation. Make sure that the following software package has been installed on your linux system.

Ar of Linux commands I used-create static library. a file

Description Create a static library. a file. C/C ++ is often used to develop programs, but I rarely use ar commands in command lines separately. It is generally written in makefile and sometimes used in shell scripts. Knowledge about library files,

Total Pages: 5467 1 .... 4668 4669 4670 4671 4672 .... 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.