tar command, grep command, find command

tar command First, use the tar command to pack and compress the / etc directory in gzip format, and name the file etc.tar.gz: [root@localhost ~]# tar -czvf etc.tar.gz /etc Next, unzip the packed package file to the / root/etc directory (first use the mkdir command to create the / root/etc directory): [root@localhost ~]# tar ...

Posted on Sun, 05 Jan 2020 17:10:39 -0800 by jimiwa

Linux upgrade python version

Download the python version to be upgraded, such as: wget https://www.python.org/ftp/python/3.7.0/Python-3.7.0.tgz Install required environment components yum -y install readline-devel sqlite-devel bzip2-devel.i686 openssl-devel.i686 gdbm-devel.i686 libdbi-devel.i686 ncurses-libs,zlib-devel.i686 libffi-devel To avoid conflicts with the origi ...

Posted on Thu, 02 Jan 2020 14:37:55 -0800 by andreasb

Linux Installation and deployment ftp service (create users, change the maximum number of clients)

Premise: all the installations here are installed with dockercompose, because it is easy to install and easy to manage, and all the used installations are known. mkdir: create a new directory If there is no VIM command, install the VIM command as follows: #yum -y install vim* Create a new ftp/docker-compose.yml file mkdir ftp, ...

Posted on Thu, 19 Dec 2019 13:59:01 -0800 by mp96brbj

Using different Python versions in virtualenv

I have a Debian system currently running in python 2.5.4. I installed virtualenv correctly, everything is OK. Can I use virtualenv with other versions of Python? I compiled Python 2.6.2 and wanted to use it with some virtualenv. Is overwriting binary sufficient? Or do I have to change something about the library? #1 building These are ...

Posted on Fri, 13 Dec 2019 05:51:26 -0800 by iceblox

The 15 most commonly used front-end forms verify JS regular expressions

In the form verification, it is a frequent operation to use regular expression to verify whether it is correct or not. This paper collects and sorts out 15 common JavaScript regular expressions, including user name, password strength, integer, number, Email address, mobile phone number, ID card number, URL address, IPv4 address, hex color, date ...

Posted on Thu, 12 Dec 2019 10:18:41 -0800 by aeafisme23

Gorang deals with TCP packet splitting and combining - fixed packet header + packet body

Scenario of TCP packet splitting and combining TCP communication is streaming. When a large packet is sent, it may be split into multiple packets to send. At the same time, multiple packets may be sent, or it may be combined into one packet by the underlying layer to send. Subcontracting: to receive a packet, you need to split the packet; Pac ...

Posted on Wed, 11 Dec 2019 00:10:44 -0800 by talkster5

curl impersonates http requests

brief introduction curl is a command line tool for transferring data with URL syntax. PHP supports libcurl library created by Daniel Stenberg, which can connect to various servers and use various protocols. Currently, libcurl supports http, HTTPS, ftp, gopher, telnet, dict, file and ldap. Libcurl also supports HTTPS certificate, HTTP POST, HTTP ...

Posted on Mon, 09 Dec 2019 15:20:19 -0800 by boushley

Unattended automatic installation system under xp

Unattended installation can greatly shorten the installation time of the system. I successfully tested in virtual machine. Link file first https://files.cnblogs.com/files/sishenzaixian/%E8%87%AA%E5%8A%A8%E5%AE%89%E8%A3%85.zip. Here, first go to the xp auto answer file -- unattend.txt [Data] AutomaticUpdates="No" ;Automatic upgrade Autopartit ...

Posted on Sun, 01 Dec 2019 20:43:42 -0800 by acannings

Using FTPClient to upload and download in JAVA

In JAVA programs, you often need to deal with FTP, such as uploading files to FTP server and downloading files. This paper briefly introduces how to use FTPClient (in commons net package) in jakarta commons to upload and download files. I created mvn project, so I added dependency in pom.xml file: <!-- https://mvnreposito ...

Posted on Sun, 01 Dec 2019 07:00:00 -0800 by goochy808

Code implementation of machine learning QuickStart 2 classification

Wisconsin breast cancer data set The Wisconsin breast cancer dataset contains 569 samples of malignant or benign tumor cells. The first two columns of the data set store the unique ID of the sample and the diagnosis results of the sample (M represents malignant, B represents benign). The 3-32 columns of the dataset contain 30 featu ...

Posted on Sun, 24 Nov 2019 12:40:22 -0800 by Jackdaw