Combing EOF Writing in linux

Reprinted from http://www.cnblogs.com/kevingrace/p/6257490.html In the ordinary operation and maintenance work, we often encounter such a scenario: When executing a script, you need to input N lines into a file automatically. If it's a few lines, you can also use echo additions, but if it's a lot of lines, it's foolish to use echo additions ...

Posted by lynxus on Tue, 04 Jun 2019 16:03:22 -0700

Centos Multiple yum Source Configuration Methods

Note: All three methods should be preceded by an action 1. The default yum source after Centos installation is as follows [root@kangvcar ~]# ll /etc/yum.repos.d/ total 32 -rw-r--r--. 1 root root 1664 Dec 9 2015 CentOS-Base.repo -rw-r--r--. 1 root root 1309 Dec 9 2015 CentOS-CR.repo -rw-r--r--. 1 root root 649 Dec 9 2015 CentOS-Debugin ...

Posted by Singularity on Tue, 04 Jun 2019 10:15:12 -0700

Remote access of l2tp/ipsec server in vpn

brief introduction PPTP and L2TP are our most commonly used vpn. Before we used pptp, we found that the new version of ios system does not support PPTP protocol. Another client can not connect VPN after connecting the hotspot of iphone. In order to facilitate office work, we need to build l2tp/ipsec vpn. Realization I. Installation of s ...

Posted by Valdhor on Mon, 03 Jun 2019 20:55:51 -0700

Linux system samba service

I. samba Samba is a free software that implements SMB protocol on Linux and UNIX systems. It consists of server and client programs. SMB (Server Messages) Block (Information Service Block) is a communication protocol for sharing files and printers in LAN. It provides file and printer sharing services for different computers in LAN. SMB ...

Posted by danjoe_15 on Sun, 02 Jun 2019 16:53:33 -0700

Configure LNMP on a single host

Compile and Install nginx 1. Log on to the official website to get a download link directly wget [root@localhost ~]# wget http://nginx.org/download/nginx-1.17.0.tar.gz 2. Unzip the file [root@localhost ~]# tar xf nginx-1.17.0.tar.gz 3. Check that the current environment meets compilation requirements and generate a makefile file [root@localho ...

Posted by mailtome on Sun, 02 Jun 2019 10:15:14 -0700

5-38 shell introduces command history completion alias wildcard redirection

8.1 shell introduction What is shell? The shell is a command interpreter that provides interaction between users and machines (command line terminals) A script shell is a manifestation The last section of passwd is the user's shell shell supports specific grammars, such as logical judgement, loops Each user can have his or her own specific ...

Posted by dagee on Wed, 29 May 2019 04:50:08 -0700

Timing Auto-Execution in Linux (at,crontab)

Timing Auto-Execution in Linux (at,crontab) concept In Linux systems, there are two ways to schedule work ahead of time at executes only once crontab repeats periodically Through the application of these two tools, we can realize the function of timing and automatic operation at the operating system level. Experimental environment ...

Posted by Plex on Sun, 26 May 2019 16:15:48 -0700

Network Attribute Configuration

When we have a brand new computer, the first step is to download all kinds of software, watch videos, listen to music and so on. The key point here is to have a network. Nowadays, most personal computers are based on windows operating system. It is very simple to access network. It may be possible to access the Internet by plugging in the inter ...

Posted by baby_g on Fri, 24 May 2019 13:00:54 -0700

Introduction to awk (report generator), grep (text filter), sed (stream editor)

Three swordsmen Three Swordsmen of Text under linux grep egrep,grep,fgrep Text Search Needs grep: Search the text according to the pattern and display the line of text that conforms to the pattern. pattern: matching condition of combination of text characters and metacharacters of regular expressions grep [option] "pattern" file grep root ...

Posted by AP81 on Thu, 23 May 2019 10:41:23 -0700

Configure vim personal IDE

If you want to use IDE tools, all you need to do is install vim-nox. However, such errors may be reported during installation. The following packages have unmet dependencies: vim-nox : Depends: vim-common (= 2:7.3.547-7) but 2:7.4.488-7 is to be installed Depends: libperl5.14 (>= 5.14.2) but it is not going to be insta ...

Posted by Atomic Taco on Wed, 22 May 2019 10:37:42 -0700