1. what is the shell Operating System Interface? through shell, you can call the corresponding hardware through the kernel. 2. what is Bash? BourneAgainSHell (bash) is actually a version of shell. 3. BashShell functions: 1) command compilation (Command history);... 1. what is shell?
The operating system interface. the shell can call the corresponding hardware through the kernel.
2. what is
SummaryPreviously written to see other people write scripts with SHC encryption, I also have to understand the next.SHC represents shell script compiler, the shell scripting compiler. A script that has been compiled by SHC is not readable to ordinary users, so if you want to protect your code (for example, with a key), you can consider SHC; however, some people can use the reverse compiler to crack the SHC encrypted script.Let's start by introducing:I. Using SHC to encrypt
ArrayWhat is an array?An array in a computer refers to a data type that is organized in a certain order by a number of variables of the same type.The popular point is that the array is one of the variables, in terms of the current term is a variable circle, but this variable circle is the same type of variables and have a certain organizational order.Format of the arrayArray[key]=valueArray: Represents the name of the array variableKey: Indicates the index of the array element is also called sub
ArrayWhat is an array?An array in a computer refers to a data type that is organized in a certain order by a number of variables of the same type .The popular point is that the array is one of the variables, in terms of the current term is a variable circle, but this variable circle is the same type of variables and have a certain organizational order.Format of the arrayArray [key]=value array: represents the name of an array variableKey: indicates that the index of an array element is also call
What is Bash shell script programming?A: There are multiple shells in Linux, and the default shell for CentOS and Redhat is the bash shell. As for shell scripts, this is a bit like (. bat file) for batch files inside the Windows operating system. I wonder if you remember the philosophical thinking of Linux? There are two points: a single application consisting of a multitude of purposes: A program that only
Original URL: http://www.mike.org.cn/articles/linux-linux-bash-command-search-mechanism/Turn from: Eric cheung:linux (BASH) command search mechanismThis article assumes that the environment is gnu/linux, and that the shell is bash; Note: In addition, we discuss the premise that when you type a command and do not specify the path of the command, for example, we t
First, the variable name1, can only contain letters, numbers and underscores, and cannot start with a number,2. Should not be the same as the existing environment variables in the system3, the name to have the meaningIi. Assigning values to variablesVariable name = value Var_name=value equal to no space on either side[email protected] ~]# Name=Jerry~]#echo $NAMEjerryThird, bash: variable type1. Environment variablesThe script starts a child shell pro
Tags: cin technology share Microsoft-O-Clear CTO SOF Ant 1.5Often heard: Shell programming, bash programming, and bash shell programming, what is the shell, and what is bash, what are the links between the two ... bourne shell is the shell used by the early Unix system, located in/bin/sh, or SH, which is the shell's embodiment. It can be understood that the
Even if Bash does not inherit any environment variables from the parent process, bash will create three environment variables, respectively:
$ env-i BASH-C ExportDeclare-x oldpwdDeclare-x pwd= "/"Declare-x shlvl= "1"
ShlvlIf the parent process passes the SHLVL environment variable, Bash accum
Article Title: Custom bash. Linux is a technology channel of the IT lab in China. Includes basic categories such as desktop applications, Linux system management, kernel research, embedded systems, and open source.
Finally, we installed the Solaris 10 u8 on the Sun Fire V890 and got started with minicomputers.
Since Linux has been used for a long time, we like bash (bourne again shell) very much, but it is
Bash Shell and bashshellI,Terminal Printing
[Root @ cai ~] # Echo welcome to bash!
Welcome to bash!
[Cairui @ cai ~] $ Echo 'Welcome to bash! '
Welcome to bash!
[Cairui @ cai ~] $ Echo "welcome to bash \! "
Welcome to
.
Copy Code code as follows:
#!/bin/bash
Declare-i sum=0
For I in {1..100}; Todo
If [$[$I%3]-eq 0]; Then
Let sum+= $I
Fi
Done
echo "The sum is: $sum"
2. Calculate all odd numbers and all even numbers within 100
Copy Code code as follows:
#!/bin/bash
# echo "Exercise"
Declare-i sum1=0
Declare-i sum2=0
For I in {1..100}; Todo
If [$[$I%2]-eq 0]; T
In Linux, how many types of executable files are available? How does one execute a program in the bash environment? Next we will analyze them one by one.1. Types of executable files in Linux: 1.1 binary executable files
This type of file is the most common, such as/bin/ls,/sbin/ifconfig,/bin/cat, and so on.
[Root @ notebook135 ~] # File/bin/ls/bin/cat/sbin/ifconfig
/Bin/ls: ELF 32-bit LSB executable, Intel 80386, version 1 (SYSV), dynamically linked
Document directory
Task: display current bash prompt (PS1)
Task: modify current bash prompt
Task: add colors to the prompt
Task: how to make the prompt setting permanent
Tput command
Handy tput commands
Colors {code} code for tput command
Q. How do I change the color of my shell prompt under Linux?
A. YouCan change the color of your shell prompt to impress your friend orMake your own life quite e
Bash has recently exposed a serious vulnerability, which affects almost all Linux systems on the market. From the security perspective, the customer requires that the vulnerability be repaired for each affected host. As the company uses a Red Hat system, security is also affected.
(Digress: Red Hat Patches can be downloaded only after they are paid. As a poor person, I am helpless. I asked the company if I didn't buy the Red Hat service. The Red Hat
Install bash shell and solarisbashshell on solarisA bash vulnerability exists in earlier versions of sun solaris, which can be solved by uninstalling or upgrading.1. All pkg installation packages:Http://mirror.opencsw.org/opencsw/allpkgs/ 2, download Installation :#Gunzip bash-4.3.33,rev1_2015.02.15-sunos5.10-sparc-csw.pkg.gz#Pkgadd-d
Structure of the while, until, case, and select statements in bash
Case statement:
Use the case structure in the script:Case $ {VAR_NAME} inPATTERN1)COMMAND...;;PATTERN2)COMMAND...;;...EsacPATTERN can be the following types of characters:1. common text characters2. Globbing-style wildcard:*: Any character of any length? : Any single character;[]: Any single character in the specified range;[^]: Any single character out of the specified range;3. |Or ch
Windows10 running Ubuntu Bash onApril 6, 2016, Windows Insider Preview released version 14316, added Ubuntu Bash, on Windows to provide a Linux environment, you can directly execute the linux command.I used to have Linux emulator app Cygwin on Windows and compiled Linux commands into executable files under Windows with the Cygwin app.This Win10 further, adding the Linux emulator to the kernel, providing sup
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.