method One:
Locate_library () {[!] "$1*" = "' echo $1* '"]; }
Usage:
# Look for PAM (do weirdly due to distribution bugs (e.g. Debian) or the
# Crypt library.
If Find_func Pam_start SYSDEPUTIL.O; Then
locate_library/lib/libpam.so.0 && echo
This article describes a shell script that handles the conversion of decimal numbers to 16-way. The existing two data files I0.txt and Q0.txt are as follows:
I0.txt Q0.txt
935 3297
385 6964
-280 12697
1768 8404
7377-852
#!bin/bash
#因为有负数, so
Q: What is a shell and what is a shell script? The A:shell is a program written in C that is a bridge between the user and the Linux operating system. Users can either enter command execution and use shell scripting to accomplish more complex
Preface
Linux Shell Scripting Basics We are almost finished here, function believe that we are not unfamiliar with it, directly to the topic of it ~
Please indicate the original link:http://blog.csdn.net/u011974987/article/details/52718164This
The meaning of the-Z to-D in the conditional judgment in the shell
[-A file] if FILE existence is true.
[-B-file] True if file exists and is a block-specific file.
[-C file] is true if file exists and is a word special file.
[-D file] is true if
This article is from Baidu Encyclopedia.
What is a shell.
To be exact, the shell is a command-line interpreter whose function is to interpret the input commands and pass them on to the system, following a certain syntax. It provides users with
After HBase starts, the HBase shell runs into the hbase shell command line
1. Create a table
Create ' user ', ' FName ', ' LName '
User to indicate that FName and LName are column names
2. Inserting a piece of data
Put ' user ', ' 1 ', ' FName ',
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
one echo command output text
1.1 displaying normal strings
echo [Options] string
option means that the command option, only-n, does not output a newline character at the end of the line.
If the text you want to output is made up of multiple
zabbix3.0.4 add monitoring of the process:
method One: Monitor with custom commands
Main idea: Through Ps-ef|grep sdk-push-1.0.0.jar |grep-v grep|wc-l This command to determine whether the process Sdk-push is running, if not equal to 1 means
Note: The example of this article comes from the collection and collation of the network, with my comments attached. Common uses of ①i/o redirection
Symbolic meaning
cmd1 | cmd2 pipe character, the standard output of CMD1 as the
Original: http://apps.hi.baidu.com/share/detail/31263915
Comparison of strings and values in the shell
In the shell, the comparison between the string and the numerical method is different, pay attention to distinguish
Integer comparison:
-eq
ContentEOFYou can replace EOF with something else (the decomposition character)It means to pass the content as standard input to the program.
Here is a brief look at the use of Character. The content after the delimiter is treated as input until the
Shell script is similar to batch processing under Windows/dos, that is, the use of various commands pre-placed into a file, convenient one-time execution of a program file, mainly for the convenience of administrator settings or management. The
I would like to have a person who is as ordinary as youLike a refreshing breeze in the mountainssuch as the warm light of the old CityFrom early morning to nightFrom the wild to the studyAs long as you're the lastJust fine.
--Zhang Jiajia "Passing
Shell scripting language is an important tool to implement LINUX/UNIX system management and automation operations, and the core of the Linux/unix system is mostly concerned with the contents of shell scripts. Every qualified Linux system
I. Logical judgments in shell scriptsGrammar1. Format 1if condition; Then statement; FiExample: If a is greater than 3, print OK[[email protected] ~]# vi 2.sh[[email protected] ~]# bash -v 2.sh #!/bin/basha=5if [ $a -gt 3 ]then 2. Format 2if
The use of Springboard machine only to do SSH relay, in order to strictly control the data entry and exit of the Springboard, command management, special access to the springboard operation to restrict management. The script contains two interface
>Access to variables: EchoEcho $variableEcho $PATHEcho ${path}Configuration rules for variables1. Variables and variable contents are linked by an equal sign "=" as follows:"Myname=vbird"2. The equal sign cannot be directly connected to the space
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
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