Brief summary:
Single quotes:What you can say is what you see is what you get: the contents of a single quotation mark are output as-is, or what you see in single quotes is what you output. double quotes:The contents of the double quotation
First, what is the bean Shell
BeanShell is a scripting language that conforms fully to the Java syntax specification and has its own syntax and methods.
BeanShell is a loosely typed scripting language (this is similar to JS);
In a shell script written by OPS, it is sometimes necessary to put some content directly into a file, such as configuring some content in a shell script to regenerate into a shell script, using the cat command and redirect symbol
Cal Command: Date display
Cat/proc/meminfo: Memory usage Query
Free command: Memory detail Query
Arch command: CPU architecture displayDisplays the architecture of the current system, for example:#archx86_64
CAT/PROC/CPUINFO:CPU
Linux common system monitoring shell scriptsThe following is a few of my common Linux system monitoring scripts, we can change according to their own situation, I hope to give you a little help.1. Check the host network card traffic
Two months ago used HBase, now the most basic commands are forgotten, leave a reference ~
Go into hbase shell console$HBASE _home/bin/hbase ShellIf you have Kerberos authentication, you need to use the appropriate keytab for
I. Traditional deployment methods and advantages and disadvantages1. Traditional deployment methods(1) purely manual SCP(2) manual login git pull, svn update(3) Pure handmade xftp pull up(4) develop to hit a compressed package, RZ up; unzip2.
2016-08-10Content of the lesson:Shell Script Basics:VariableOperationBash Test (digital test, character test, file test, combination test)Read commandVariable action:1. Data storage format2, the operation of the participation3, the data range
1, write script/root/bin/systeminfo.sh, display the current host system information, including host name, IPV4 address, operating system version, kernel version, CPU model, memory size, hard disk size.Script content:650) this.width=650; "src=" Http:/
Use the key file. This assumes that host a (192.168.100.3) is used to obtain a file for Host B (192.168.100.4). Execute the following command on host A to generate the pairing key: ssh-keygen-t RSA encounters a prompt to enter by default, and the
1 Bash Information profile for the TTY login interface:/etc/issueLogon interface information for Telnet telnet:/etc/issue.net2/ETC/MOTD the contents of this file can be seen by all users including the root user when logging in, so when there is
Recently in the Zabbix, the company has six new servers. When the Zabbix client is deployed, the baby is really angry. Grandpa's always so repetitive work is also not AH. But as a war five slag, what else can be mixed with rice? Think of last year
Write a script/root/bin/yesorno.sh, prompt the user to enter Yes or no, and determine whether the user entered Yes or no, or other information
#!/bin/bashread-p "Put your answer (yes or no):" Answercase $Answer iny| y| [YY] [EE]
[email protected] and $* the difference
[Email protected]~] $vim my_fun.sh#!/bin/bash# [email protected] and $*My_fun () {echo "$#"}Echo ' The number of parameter in ' [email protected] ' is ' $ (my_fun "[email protected]")Echo ' The number of
Sort-u and Uniq can play the role of removing duplicate information, so where is the difference between them?$ cat TestJasonJasonJasonFffffJasonThe following three commands are executed separately1:sort-u TestSort-u TestFffffJason2:uniq Test$uniq
$*
Include all command-line arguments as a single text value
[Email protected]
Include all command-line arguments as separate text values
$#
Number of command-line arguments
$?
Exit
before starting the code, let's take a look at what a shell is. Shell English is also called the shell layer. In a computer, "system" software that "provides user interface", usually refers to the command parser of the command line interface. In
Yesterday, the Dragon Boat Festival, the evening when a phone call, my friend's company, the database was two work not long phper to break, the specific is to put a field value, to the whole table into a name, of course, this is can be configured to
This article is part (iv) of the Linux Shell Series tutorial, more on the Shell Tutorial: Linux Shell Series Tutorials
Like many programming languages, there are annotation symbols in the shell, and today we introduce the syntax and usage of
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.
A Free Trial That Lets You Build Big!
Start building with 50+ products and up to 12 months usage for Elastic Compute Service