sort, uniq, tr, cut, eval and regular expressions
1, sort command
1. The role of sort
Sort the contents of files in behavioral units, or according to different data types
2. Syntax format
sort [option] parameter
cat file | sort option
3. Common options
Common optionseffect-fIgnore case and convert all lowercase letters to uppercase letters for comparison-bIgnore spaces before each ...
Posted by tsapat on Mon, 03 Jan 2022 02:01:28 +0100
platform device driving experiment
1, Separation and layering of linux Driver
The device drivers we wrote in the previous chapters are very simple. They are the simplest read and write operations for IO.
The drivers of complex peripherals such as I2C, SPI and LCD cannot be written in this way. Linux system should consider the reusability of drivers, so it puts forward the ...
Posted by Sillysoft on Mon, 03 Jan 2022 01:21:16 +0100
[inter thread communication] 1. Mutual exclusion and synchronization
1, Overview of mutual exclusion and synchronization
In a multitasking operating system, multiple tasks running at the same time may need to access and use the same resource
There are dependencies between multiple tasks, and the operation of one task depends on another task
Synchronization and mutual exclusion are used to solve these two prob ...
Posted by Ixplodestuff8 on Mon, 03 Jan 2022 01:06:46 +0100
Set up NFS Service & real-time synchronization
Today's content
Introduction to NFS
Implement NFS file synchronization
NFS configuration details
Unified user
Building web Services
NFS for file sharing
Detailed content
1. Introduction to NFS
1.1 INTRODUCTION
Realize multiple web The server can share data resources, just put each web The data storage of the server is independent and stored i ...
Posted by frymaster on Mon, 03 Jan 2022 00:30:07 +0100
How to use Linux Netlink
How to use Linux Netlink
1, Netlink user mode construction process
1. Create a netlink based on a custom port_ Test socket.
#define NETLINK_TEST 99
skfd = socket(AF_NETLINK, SOCK_RAW, NETLINK_TEST); //Create a socket using user defined protocol NETLINK_TEST.
if (skfd == -1) {
perror("create socket error\n");
return -1;
}
2. Initialize s ...
Posted by 051119 on Sun, 02 Jan 2022 21:54:47 +0100
[linux] step by step operation and maintenance - CentOS7 basic configuration
Article catalog
Fixed networking IP Modify IP using command Open the network card configuration file VIM / etc / sysconfig / network scripts / ifcfg-ens32 Question 1: if you still can't ping Baidu after setting it, what's the reason?Turn off the firewall and set it to turn off automatically after startupSet selinux to turn off automatically af ...
Posted by MBenefactor on Sun, 02 Jan 2022 21:32:03 +0100
PyMySQL module & multithreaded programming & Paramiko module | Cloud computing
1. Add data to the table
1.1 problems
Insert data into the employees tableInsert data into the salary tableThe inserted data needs to be commit ted to the database
1.2 steps
To implement this case, you need to follow the following steps.
Step 1: PyMySQL installation
Install gcc. Some software packages are the source code of C
[root ...
Posted by social_experiment on Sun, 02 Jan 2022 21:13:08 +0100
Analysis and recovery of excessive ssh links
origin #
One day, a colleague on the product side contacted him and reported an error in the bill transmission program. The phenomenon is as follows: In fact, the node only provides an sftp service for the product side to transmit bills for temporary storage, which is taken away by the billing department.
analysis #
So I asked my o & M c ...
Posted by malcolmboston on Sun, 02 Jan 2022 20:18:34 +0100
[linux interprocess communication] 2 The Conduit
1, What is pipeline
Pipeline, also known as anonymous pipeline, is a special type of file, which is embodied as two open file descriptors in the application layer
Anonymous pipeline is created in kernel space. Multiple processes know the space of the same anonymous pipeline and can use it to communicate
The anonymous pipeline will give the ...
Posted by phu on Sun, 02 Jan 2022 19:36:57 +0100
Using Netfilter framework to write kernel module under Linux
Last article Analysis of Linux netfilter hook source code From the perspective of kernel source code, we analyze how hook hooks are executed under the Linux Netfilter framework. This time, we write a simple example code to introduce in detail how to write kernel modules using the Netfilter framework.
In the previous article, we analyzed the ...
Posted by vanzkee on Sun, 02 Jan 2022 18:15:38 +0100