Typically, as a deployment script for an application, the first task that begins is to create a dedicated (dedicated) user and user group for the current app. This script is very simple, a reference sample is attached here:[Plain]View Plaincopy
Variable Variablename=value
Cannot have spaces around equals sign
Variable content has a space to use "or", but v= "Hello $name" $ to maintain the original function, single quotation marks do not, v= "Hello ' $name '" plain text
Use
Shell function calls are divided into two types:The first way, a bit like the C language Call function style, directly to the function of the execution of the result copy to the variable! However, the assignment process is not the same as the C
First, Introduction[equivalent to test, which is the internal command of bash, the coreutils package for the Gnu/linux system usually takes/usr/bin/test and/usr/bin/[commands. If we don't specify the absolute path, we usually use Bash's own commands.
Source: (Linux Shell) Chapter One--Small trial sledgehammer (i.)Starting today, let's study the book "Linux Shell Scripting Raiders".1.1 Brief IntroductionA shell script is typically a text file that starts with #!, as seen in the
In my best friend's recommendation, I watched this video:The Black Magic of SSHIn this video, we introduce some of the advanced applications of SSH, and in combination with the experience of the work, two types of questions will help us a lot in our
In the loop, sometimes you need to force out of the loop when the loop end condition is not reached, like most programming languages, the shell also uses break and continue to jump out of the loop.Break commandThe break command allows you to jump
Bash supports many operators, including arithmetic operators, relational operators, Boolean operators, string operators, and file test operators.Native bash does not support simple math operations, but can be implemented with other commands, such as
"Broken Shell" (Shellshock) bug fixBackground: distance from" broken Shell "(Shellshock) A loophole broke out in the past two weeks (announced September 24, 2014). I'm sure a lot of people have heard of this. The vulnerability rating of 10, which
To make it easier for you to review your memory, we will summarize the hadoop commands of today's experiment for later viewing. Note: The following commands are performed in hadoop/bin. 1. hadoop FS-ls \-> View All the following directories. 2.
Hadoop FSList all commandsHadoop FS-help lsList detailed information about a commandHadoop DFS-mkdir/data/weblogsHadoop DFS-mkdir/data/dir1/data/dir2...Create a folder that can be recursively created and multiple directories can be created at the
/* Configure /*----------------------------------------------------------------------------------------------- @ Blackeye poet Optional -----------------------------------------------------------------------------------------------*/ Role of
Labels: Bash basics and standard I/O pipeline shell programming Basics
1. Bash basics and configurations
From the user's perspective, the shell type:
Logon Shell
Log On Through a terminal normally
Su-Username
Su-l Username
Non-Logon Shell
Su
1. sshpass enables SSH to remember the password for SSH Automatic Login (1) install sshpasssudo apt-Get install sshpass.pdf download sshpass-1.05.tar.gz shell> tar xvf sshpass-1.05.tar.gzshell> Cd sshpass-1.05shell> make & make install (2) test
1. shell scripts and function scripts are files that contain shell commands. They are a shell program and run in three ways: one is to type source scriptname to read and run the script commands, just like typing them. Second, run bash scriptname and
Automated CT is a software suite for automatic interaction (Automated CT [is a] software suite for automatic interactive tools ).
The Except CT language is based on TCL. As a scripting language, TCL has simple Syntax:
CMD Arg
A tcl command consists
TR is used to delete control characters in a file or convert characters.Syntax: TR [-C/D/S/T] [set1] [set2]Set1: Character Set 1Set2: Character Set 2-C: complement. Use set2 to replace characters not included in set1.-D: delete all characters in set1
Linux Shell script monitors the running status of WAS (WebSphere Application Server)Principle: You can call the WAS script wsadmin. sh to obtain the instance status.Operating system version:
[Root] # head-1/etc/redhat-releaseRed Hat
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.