1. Docker Container Restart policy
The restart policy for Docker containers is a start-up strategy for production environments that can be ignored during the development process.
Docker container restarts are done by the Docker daemon and are
Shell Builtin variables (shell built-in variables) $ BASHThe path to the Bash binary itselfbash $ echo $ BASH/bin/bash $ BASH_ENVAn environmental variable pointing to a Bash startup file to be read when a script is invoked $ BASH_SUBSHELLA variable
Shell common knowledge-general Linux technology-Linux programming and kernel information. The following is a detailed description. Shell common knowledge
1. system environment variables after users log on to the system
$ HOME user's own directory
$
Reprint could not find the original source.Recently in Linux programming found a strange phenomenon, is to link a static library always error, similar to the following error:
(. text+0x13): Undefined reference to ' func '
About
Return, break, and contiue are language structures, just like if statements, but exit is a function. 1. function of exit: Outputamessageandterminatethecurrentscript outputs a message and terminates the current script. If a piece of text contains
From: http://ticktick.blog.51cto.com/823160/431329
Recently, programming in Linux finds a strange phenomenon, that is, errors are always reported when a static library is linked, similar to the following errors:(. Text + 0x13): Undefined reference
The only way to create a new process in Linux is to use the fork () function. The fork () function is a very important function in Linux, and there are some differences from previous functions, because the fork () function looks like it executes
If condition test statement
If-then-fiThe IF condition test statement runs the command after the if (judgment).If the exit status code for this command is 0, the command in the then section will be executed.If the exit status code for the
Create a shell scriptWhen you create a shell script file, you must specify the shell to use in the first line of the file, in the format:#!/bin/bashCreate and execute SH scriptCode 1-1[Email protected]:/data# cat demo1 #/bin/bashdatewho[email
I. Condition testing: Test [The command test or [can test whether a condition is true, if the test result is real, the exit status of the command is 0, if the test result is false, the exit status of the command is 1 (note the exact opposite of the
1 Create Shell script FileTo create a shell script file, you must specify the shell you want to use on the first line in the following format:#! /bin/bashThen add a comment to the shell file that explains what the script file is used for, who
1, numeric and numeric expressionsAWK does not provide a string-to-number function, but awk is simple: Add a 0 to the string, such as S = "123", then N = 0 + S, and assign the number 123 to N.2. How to print the first few linesHead-n n filename#
1. Define Variables
1) when defining a variable, the variable name does not contain the dollar sign ($), for example:Var = "Hello World"2) Note that there is no space between the variable name and equal sign, which may be different from all
Shell script programming and file system RepairGuideThe Linux Foundation has initiated the LFCS certification (Linux Foundation Certification System Administrator) Linux Foundation Certified Sysadmin, which is a brand new certification system, the
The King of text sorting: the sort command, the King sort
Directory:
1.1 option description
1.2 sort example
1.3 in-depth research on sort
Sort is a sorting tool that perfectly implements the Unix philosophy: "do only one thing and do it perfectly ".
Introduction
When you often use a system, it is often in a fixed usage mode. Sometimes, you do not get into the habit of doing things in the best way possible. Sometimes, your bad habits may even lead to confusion. One of the best ways to
The exit and _ exit functions are used to terminate a program normally: _ Exit immediately enters the kernel, and exit is used to execute some cleanup operations (including calling and executing various termination processes, close all standard I/O
Awk control statement
The break and continue statements can use the break statement to exit the loop when a specific condition is true. When a specific condition is true, the continue statement skips the continue statement, switches the statement
Centos compiles start-stop-daemon and supports the latest option (-- chdir) start-stop-daemon, which is a debian tool. This library is not available in centosredhat release. To be compatible with some scripts to call this program, we need to
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.