Shell Getting Started Tutorial: Shell variables
Variable
A variable is a place to store data temporarily, and is a memory space. Bash shell and other programming languages, there is no "data form", which means that the default is not to
This is a shell script, so first you need to install a basic Cygwin environment and, of course, curl.
The principle is very simple, first download the latest MIRRORS.LST mirror list from cygwin.com, after simple processing, using curl to detect the
Today, the company colleagues in a server on the other two servers with the computer room for file transfer, the two server files to store the same address, the password and key is consistent (our company in security to do a bit of a pervert), in
Hello everyoneThis is a self-reading, learning shell programming, the work of a large number of applications, especially awk, SED, grep-based. Hope to be useful to everyoneYou can see the central location directly."Data"Export
The Until loop executes a series of commands until the condition is true. The Until loop and the while loop are just the opposite of the processing mode. The general while loop is better than the until loop, but at some point it is only rare that
The IF statement determines which branch to execute by using relational operators to determine whether an expression is true or false. The Shell has three kinds of if ... else statements:
If ... fi statement;
If ... else ... fi
[Email protected] wyb]#CatTishiuser.SH #!/bin/Bash #提示用户输入一个用户名, if present, displays user UID and shell information, otherwise, #则显示无此用户, prompts the user to enter again after the display is completed, and exits if quit ;Echo 'Input ' quit ' to
Excerpt from: http://www.cnblogs.com/peida/archive/2013/01/08/2850483.htmlI. Introduction of CrondCrond is a daemon that is used to periodically perform certain tasks or wait for certain events under Linux, similar to Scheduled tasks under Windows,
One, parenthesis, bracket ()1, single parenthesis ()① Command Group. The commands in parentheses will be executed in a new sub-shell sequence, so the variables in parentheses cannot be used by the rest of the script. Multiple commands in parentheses
Shell principleIn the operating system, the bottom is the hardware, and the hardware is the kernel (kemel), the kernel is the library, the library is the application, in many applications, there is a shell application, commonly known as the shell,
Sometimes some of the improperly processed SH script files in Windows are placed under Linux to perform an error, prompting for a newline character, mainly because the end of the EOL line under window is "\ r \ n" two characters, while Linux,unix is
This script has been used on the production server for more than a year, this script advocates simple aesthetics, only need a script to be able to automatically configure LNMP on any server with network.This script will be used in the script
1. Understanding Shell Scriptshell Script is a "program" that uses the shell's function abbreviation, which uses plain text files to write some shell syntax and commands (including external commands) in it, with regular expressions, pipeline
file Testing (-f,-d,-r,-r,...)
[-f/root/file.txt],[-d/root/mydir]
[[-f/root/file.txt]]File testing aspects [[]] same as []
string comparison (-z,-n,!=,==,...)
[-Z "${str}"],["${str}"! = "${str}"],[!-n "${str}"][] can only be
Operator
Describe
Example
File comparison Operators
-e filename
True if filename exists
[-e/var/log/syslog]
-D filename
True if filename is a directory
[-d/tmp/mydir]
This article main reference: HTTP://PUBS.OPENGROUP.ORG/ONLINEPUBS/9699919799/UTILITIES/V3_CHAP02.HTML#TAG_18_06_02Other information:http://www.ibm.com/developerworks/cn/linux/l-bash-parameters.htmlThe parameter extension is represented as:
The system environment is: Ubuntu 14.04One, JDK automatic installation scriptJDK automatically installs bash shell scripts, as of today (2014/10/15) Pro-Test available:sudo su #切换到root权限mkdir/usr/local/JAVACD/usr/local/java#download JDK1.7. thewget--
N years ago bought a tp-link 841n V7, has been used to calculate, in addition to not regularly restart the router, or slow speed of the Turtle crawl Ah! This is also TP original firmware of common problems, so brush dd-wrt, say DD really cool, in
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.