Learn Bash debugging in 10 minutes

Shell is a program for the interaction between users and the operating system. It is often used to perform some automated or repetitive and cumbersome tasks. Now all Linux systems basically bring this program. We only need to write shell scripts and execute them directly. There is no need to install additional software and configure the compi ...

Posted by bluwe on Tue, 02 Nov 2021 08:41:08 -0700

Explanation of reserved word instruction in Dockerfile

I learned Docker briefly before. At that time, it was to quickly deploy a project. It passed quickly. I was a little unfamiliar with the writing of Dockerfile files. So I wrote this article. I hope I can help you!!! 1, What is Dockerfile? Concept: Dockerfile is a build file used to build Docker images. It is a script composed of a series ...

Posted by tomlei on Tue, 02 Nov 2021 03:42:41 -0700

Submit kernel patch

Submit kernel patch Rong Tao October 28, 2021 Document modification log dateModification contentModified byremarksOctober 28, 2021establishRong Tao 1. Introduction 2. Clone kernel # Cloning Linux kernel from GitHub $ git clone --depth=32 https://github.com/torvalds/linux # Switch branch $ git checkout master # synchronization $ ...

Posted by ksmatthews on Thu, 28 Oct 2021 04:33:04 -0700

Linux user management

1. Basic introduction Linux system is a multi-user and multi task operating system. Any user who wants to use system resources must first apply to the system administrator for an account, and then enter the system as this account. 2. Add user Basic grammar useradd username case Add a user milan. [root@hostName01 ~]# cd /home [root@ho ...

Posted by Seraskier on Sat, 23 Oct 2021 05:11:48 -0700

Explanation of environment variables and shell in Linux (Section 3)

preface The content of this section is to explain how to execute the command line of Linux, including basic knowledge such as command interpreter, shell configuration, alias, environment variables, etc. 1.Shell introduction Shell is the middle bridge between the kernel and users. In fact, it is the interpreter to interpret commands. ...

Posted by ReKoNiZe on Thu, 21 Oct 2021 23:40:27 -0700

Detailed explanation and practice of Linux shell script -- a branch of shell script

Today, I will continue to introduce you to the basic knowledge of Linux. The main content of this article is the branch of Linux shell script. 1, shell branch -- if statement form In shell script, we usually use if statement to make the script execute different commands according to some conditions, which can greatly make the function of the ...

Posted by warik on Wed, 13 Oct 2021 07:11:18 -0700

Linux expect error prompt: bash: spawn: command not found; couldn't read file|expect installation | expect detailed explanation | expect exquisite case

[root@RHEL7 expect]# . ssh.exp bash: spawn: command not found... couldn't read file "{": no such file or directory bash: yes/no: No such file or directory Key point: first, let's talk about the root cause of the problem. 1. Make sure that expect's dependent tcl is installed 2. Make sure expect is installed Root cause of the problem: w ...

Posted by bryson on Fri, 01 Oct 2021 15:12:11 -0700