Function of script programming:Function: FunctionsStructured programming, cannot run independently, needs to be executed when called, can be invoked multiple timesDefine a function:function FUNCNAME {Command}FUNCNAME () {Command}Custom execution
Command line and Shell: the command line refers to the interface that provides user input, which itself simply accepts input and then passes the command to the command interpreter, which is the shell.Note: The command line and file for Linux are
Beta version: Easy cool cms2.5Contains a sentence: Http://localhost/ekucms2.5/?s=my/show/id/{~eval ($_post[x])}will generate an error log in the/temp/logs/directory of the website, naming rules for the year _ month _ DayError log contentsContains
The shell script, as its name implies, is a script written for the shell, as long as there is a text editor and an interpreter that can execute the script.There are many types of Shell in Linux, we can open a text editor (can use the Vi/vim command
In order to do cluster testing, 3 tomcat is installed on each machine, each time the project is released, it is necessary to repeatedly knock some commands, check that the Tomcat process has not stopped before restarting Tomcat, and kill the process
HDFs File System:HDFs is a distributed file system to access data, then the operation of HDFs is the basic operation of the file system, such as file creation, modification, deletion, modify permissions, folder creation, deletion, renaming and so on.
Demand:Bulk delete users using the For loop[Email protected] ~]# Cat/etc/passwdroot:x:0:0:root:/root:/bin/bash. stu01:x:1001:1001::/home/stu01:/bin/bashstu02:x:1002:1002::/home/stu02:/bin/bashstu03:x:1003:1003::/home/stu03 :/bin/bashstu04:x:1004:1004
20171123 Linux Shell Basics Learning Notes1. The beginning of the shellGenerally #!/bin/bash through the #! To uniquely specify the shell path to useThe other # all represents comments.2. Shell variablesDefine variables directly with variablename=
One$n: Gets The nth argument of the current shell script, n=1..9, when n is 0, represents the file name of the script, if n is greater than 9, enclosed in curly braces like${10}.$*: Gets all parameters of the current shell and treats all
(a) Ideas(1) Install the virtual user by Yum install vsftpd*-y(2) Shutting down the firewall and SELinuxService Iptables Stop Setenforce 0(3) Install the Virtual user authentication module(4) Create a virtual user's login name and password(5)
Shell Introduction
The shell is a command interpreter that provides interaction between the user and the machine
Supports specific syntax, such as logical judgment, looping
Each user can have their own specific shell
CentOS7
Shell IntroductionThe shell is the intermediate medium used when the system interacts with the computer hardware, and it is just a tool of the system. There is a layer of things between computer hardware-the system kernel. If computer hardware is
Used to automate some of the front-end publishing operations.Script:# Webreleasepath is used to publish the directory, Webrevisionpath is the development of the directory
One, variableA variable is a container in which different values can be placed.Key facts:Path,home,pwd,logname these are variables.Example:[[email protected] ~]# echo +ba+~]# echo $a +$b3+4~~ ]# echo $a 3$b4~]# echo $a"3"$b334 The summation of
Tag: Request an ipad address not with two use data std nal[Email protected] shell]# vi backup.sh #!/bin/sh ipaddress=172.17.167.38 ssh-tt [email protected]$ Ipaddress-p Note: If SSH does not add the TT parameter (indicating that no TTY is
Enter parameter traversal########## [email protected] indicates a parameter string#!/bin/bashecho [email protected]For i in [email protected]; DoEcho $iDoneSelf-incrementAs far as I know, in bash, there are currently five ways to do this:1. i= '
1. Write a script to determine what the IP of the current online user is (there are many methods) in the 10.0.0.0/24 network.#!/bin/shfor N in ' seq 254 ' does ping-c1-w1 10.0.0. $n &>/dev/null If [$?-eq 0] then echo "10.0.0. $n is up
Recently learning shell programming, a little bit of gadgets to automate the collection of AWR reports, to facilitate problems in the system when troubleshooting.The contents of the script are as follows, the system collects the AWR report from 20 o'
1: The cause of the problem, the deployment of hadoop-2.6.4 WINDOW10 operation Hadoop API error, the specific error is that I upload files to HDFs, but also better, previously resolved, not described here, here to say the error from the HDFs
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.