Linux implements file operation in virtual file system / proc

1, Experimental purpose 1. Understand the content of virtual file system in Linux 2. Learn how to write kernel modules 3. Implementation of file operation algorithm in virtual file system / proc 2, Experimental environment Centos7.9,vim 3, Experimental content Write a kernel module, add a directory hello in the / proc file system, and add a fi ...

Posted by pramodv on Sat, 20 Nov 2021 12:11:32 +0100

A complete understanding of Linux interrupt processing

What is an interrupt interrupt   It is a mechanism to notify the CPU after the external device completes some work (for example, after the hard disk completes the read-write operation, it informs the CPU that it has completed through interrupt). In the early days, computers without interrupt mechanism had to query the status of external d ...

Posted by Andy-H on Fri, 19 Nov 2021 17:40:55 +0100

Management of kernel level enhanced firewall in Linux

##########1, Features of Selinux############### 1. ObservationWhen Selinux is not turned on The files created in / mnt are moved to / var/ftp and can be accessed by vsftpd service Anonymous users can upload files after setting Displays "? When viewing a file using ls -Z /var/ftp When selinux is on: The files created in / mnt are mov ...

Posted by hakmir on Fri, 19 Nov 2021 14:27:18 +0100

Chapter XI process and planned tasks

1. Process and memory management Kernel functions: process management, memory management, file system, network function, driver, security function, etc 1.1 what is a process Process: a copy of a running program, a collection of instructions loaded into memory, and a unit of resource allocation The Process ID (PID) number is used to mark ea ...

Posted by elbowgrease on Fri, 19 Nov 2021 12:25:25 +0100

linux virtual network foundation II

1.5 Route Linux does not have a direct command brctl like creating a virtual Bridge, and it does not have an indirect command. It cannot create a virtual Router... Because it is a Router! However, Linux does not turn on the routing and forwarding function by default. You can use this command to verify: cat /proc/sys/net/ipv4/ip_forward 0 ...

Posted by kotun on Wed, 17 Nov 2021 15:02:30 +0100

How to install Samba on Linux

Linux development is usually coded on Windows, and then the files are transmitted to Linux for compilation. When the project is a little large or multiple people develop at the same time, the whole process will become very cumbersome. If there is a tool that can be implemented, the code written will be synchronized to Linux in real time Samb ...

Posted by Dvector on Wed, 17 Nov 2021 01:55:44 +0100

Intranet master-slave Intelligent DNS will no longer worry

WeChat official account: operation and development story, author: Jiang Zong Write in front With the rapid development of cloud native era, all walks of life have entered k8s. In just two or three years, recruitment requires "at least one year k8s practical experience". So that many traditional technologies used by many people in ...

Posted by ev66 on Tue, 16 Nov 2021 09:33:20 +0100

Chapter 6 Advanced Shell script programming

7.9 examples Example: generate 10 random numbers, save them in the array, and find their maximum and minimum values [root@rocky8 ~]# vim max_min.sh #!/bin/bash # #********************************************************************************************** #Author: Raymond #QQ: 88563128 #Date: 2021-10-22 #FileName: ...

Posted by webAmeteur on Thu, 11 Nov 2021 05:36:57 +0100

How to do automated testing if you can't program

preface Testers who can test and understand programming are still scarce, and most organizations may not invest in this aspect. Therefore, let ordinary test engineers simply learn to carry out automated testing, which is still in market demand. Before, I was confused that ordinary test engineers could not deeply participate in the case prep ...

Posted by dpsd on Wed, 10 Nov 2021 19:32:40 +0100

2021-2022-1 20212820 Linux kernel principle and analysis week 8

How does the Linux kernel load and start an executable program Understand the process of compiling links and ELF executable file format: Creation process of executable file: c code (. c) - after preprocessing by the compiler, compile it into assembly code (. asm) - assembler, generate object code (. o) - linker, link it into executable file ...

Posted by monkeyx on Wed, 10 Nov 2021 17:46:47 +0100