shell programming tutorial
I Format of shell script file
shell script file generally consists of three parts: interpreter, command code and comments.
[root@server ~]# cat test
#!/bin/bash
<<notes
Here are multiline comments
notes
echo 'hello world'
# Here is a single line comment
echo valar morghulis
[root@server ~]# sh test
hello world
valar morghulis
The fi ...
Added by PHPisFUN on Wed, 05 Jan 2022 09:22:41 +0200
Linux common commands (latest version in 2022)
1. ls command
It is the abbreviation of list. Through ls command, you can not only view the files contained in the linux folder, but also view the file permissions (including directory, folder and file permissions)
View directory information, etc.
ls -a List all files in the directory, including.Start hidden file
ls -A List Division.an ...
Added by severndigital on Wed, 05 Jan 2022 09:17:47 +0200
hadoop high availability cluster building (HA) semester summary (please correct any errors)
(1) Preparation:
Linux uses CentOS-7-x86
Official website download address: https://archive.kernel.org/centos-vault/7.6.1810/isos/x86_64/
Virtual machine VMware Workstation 16 Pro
I know everything on this website
Hadoop installation package version: hadoop-2.7.4
Official website download address: https://archive.apache.org/dist/hadoop/co ...
Added by matty on Wed, 05 Jan 2022 08:54:31 +0200
Linux common command record
prefaceOur applications are generally deployed on Linux, so we have to learn linux commands to solve problems. According to experience, commonly used commands are basically used again before forgetting, so it's natural to remember. Occasionally used commands still have an impression when they are used next time. They can be remembered after sev ...
Added by kikki on Wed, 05 Jan 2022 08:40:57 +0200
Apache server Overview - Installation - setting up the environment before setting up the Web site server
Apache server Overview - Installation
Apache server Overview - Installation
WEB server, also known as WWW(WORLD WIDE WEB) server, is mainly used to provide online information browsing Service. Common web servers:
httpd(Apache),nginx+PHP
Tomcat: jsp + html
win:IIS
Client: IE, firefox, chrome, mobile (Browser) Browser Today's protagonist: L ...
Added by eriksmoen on Wed, 05 Jan 2022 07:50:09 +0200
How to use linux qemu
catalogue
1, Operation mode of QEMU
2, QEMU executes programs in user mode
3, System mode usage of QEMU
1, Operation mode of QEMU
He directly excerpted his "uncover home router 0day vulnerability mining technology", checked it online and found no satisfactory QEMU instructions, so he adopted the introduction in this book. If you ...
Added by koddos on Wed, 05 Jan 2022 07:09:20 +0200
Talk about conditional variables of Linux threads
Condition variables are used to synchronize threads. How to synchronize? Let's look down
Conditional variable correlation function
#include <pthread.h>
int pthread_cond_init(pthread_cond_t* cond, const pthread_condattr_t* condattr); //Initialize condition variable
int pthread_cond_destroy(pthread_cond_t* cond); //Destroy condition var ...
Added by traffic on Wed, 05 Jan 2022 06:10:59 +0200
Complete analysis of x64 variable parameter principle
Problem attractor
stackoverflow There is this problem. The standard says that the variable parameters of makecontext must be of type int, and then find the variable parameters of makecontext Source code There is a note in the following paragraph.
/* Handle arguments.
The standard says the parameters must all be int values. This is ...
Added by ewillms on Wed, 05 Jan 2022 04:17:55 +0200
Compiling and using Linux static libraries
Preface:
The nature and working mode of library files in both Linux and Windows are the same, except that the corresponding file formats and file suffixes for libraries on different platforms are different. The library called in the program is a static library. There are two purposes to use libraries in a project. One is to make the program si ...
Added by decessus on Tue, 04 Jan 2022 21:14:44 +0200
linux-system management-Process section
1. Process
1.1 ps command
There are many options for this command, so let's pick some common combinations to record.
1.1.1 ps aux
List processes executing in the system
[root@localhost sbin]# ps aux
USER PID %CPU %MEM VSZ RSS TTY STAT START TIME COMMAND
root 2 0.0 0.0 0 0 ? S 01:09 0:00 [k ...
Added by cyh123 on Tue, 04 Jan 2022 20:01:22 +0200