pssh Usage Scenarios
Assuming that you now need to configure updates for hundreds of server nodes or perform some short commands, and there is currently no complete deployment tool software, you can choose to log in to the remote terminal in
ADB shell am Use this command to start activity, services, send broadcast, etc. from the cmd console:1C:\users\administrator>adb shell am2 usage:am [subcommand] [options]3 4Start an activity:am start [-d] [-W] 5-d:enable Debugging6-W:wait forlaunch
1 " *.pid " ` 2 for inch $head _files 3 Do 4 ' {print $} ' | Xargs Kill-95 rm-f $file6 DoneCode as aboveExplain:1. Find all the PID files in the./fmsconf Directory2. Traverse the found file3. Start traversing4. Separate explanations:1. Cat
One, hive command line 1, hive support some of the commands
Command Description
quit Use quit or exit to leave the interactive shell.
Set Key=value Use the To set value of particular configuration variable. One thing to note here's if you
http://blog.csdn.net/shuanghujushi/article/details/51298672During the bash Shell's use, there are a number of string manipulations that are often encountered, and some of the individual usage summaries are summarized below.First, the definition of a
Binary comparison operators, comparing variables or comparing numbers.Note the difference between a number and a string.1. Integer comparison[CPP]View PlainCopyprint?
-eq equals, such as:if [ "$a"-eq " $b"]
-ne not equal to, such as:if [ "$a"
Core:------again---again!How ops people learn shell scriptingOld boy Linux early graduate students talk about how to learn shell programming skillsAfter graduating from school, he served as operations manager for a nearly thousand company. Currently
First, peanut shell installation (before installation needs in the Peanut Shell website registration to get a free domain name, with this domain name, behind the outside network through access to this domain name to achieve SSH login Intranet Linux
Functions in the shellThe function is to organize a piece of code into a small unit, and give the small unit a name, when the code is used to call the name of the small unit directly. Format: function F_name () {Command}The function has to be on the
#!/bin/shAccount and password can is change to what do you wanna!#author Chuanglan#修改为您的accountAccount= ""#修改为您的pwPassword= "a.123456"#手机号码, Format (area code + mobile number), for example: 8615800000000, where 86 is China's area codeMobile= "8615800
Shell Environment Variable Classification and set env export differences:
Set: Display (SET) private variables and user variables included in Shell variables. Shell of different classes have different private variables bash, KSh, and CSH. Each shell
If the expression contains special characters, shell will replace it. For example, using variables in double quotes is a replacement, and escape characters are also a replacement.For example:
Copy text-only new window
#! /Bin/bash
A = 10
Differences between return and exit in Linux Programming
Exit is used to end the execution of a program, while return is only used to return from a function.
Return
Return indicates that the function is returned from the called function to the main
--------------------
The script is first extended and then formatted. One fat extension and one ext3 Partition
-------------------
#! /Bin/sh## Partition and format the SD card script# Usage mksdboot. Sh -- device/dev/SDB
Version = "0.1"
Execute (){$
Because development requires that the development environment be automatically deployed every night, it takes one day to write a jboss-based Automatic deployment script.
#!/bin/bash#deploy jboos script#Usage(){ echo "Usage: `basename $0` -D earDir -
(Linux shell) Chapter 1-test the knife (below) and test the knife
Source: (linux shell) Chapter 1-test the tool (below)
1.6 arrays and associated Arrays
1.6.1 prerequisites
Bash supports both common arrays and associated arrays. Common Arrays can
By: dahubaobaoI. PrefaceWith the development of the Internet, more and more Unix/Linux systems are used, and it is no longer difficult to intrude into a Unix/Linux system. Usually, after the intrusion is successful, one or several backdoors will be
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