The content of this section:A sample shell script code to test the concurrency of the database.Example:#!/bin/bash#********************************# #并发后台运行fun # # forWanggy -- on- -# #note: www.jquerycn.cn # #fun_num Fun functions Background Run # #
One, the file operation1. Expression-D: Whether it is a directory-F: Whether it is a file-E: Whether the file or directory exists-R: Whether the current user has Read permissions-W: Whether the current user writes permissions-X: Whether the current
Original link: http://desheng666.blog.163.com/blog/static/4908408220121643953425/The expr command is generally used for integer values, but can also be used for strings. The General format is:Expr argument operator argumentExpr is also a manual
1. Get the name of the shell script${BASH_SOURCE-$0}2. Get the path to the shell scriptDirName "${bash_source-$0}"This path is not necessarily the true path of the script, for example, assuming that the command is in
In Linux systems, it is sometimes necessary to modify the IP address of the network card. In many cases, our maintenance of the Linux system is managed remotely (SSH), so that when the IP address changes, the connection between us and the server
1 , first to open HBase, Use JPS View ProcessJPS is the Java Process State tool, which returns the process ID and service name[Email protected]:~/apache/hbase-0.94.15-security$ JPS3082 NameNode6245 Hregionserver3493 Jobtracker6064 Hmaster5999
When a user logs on to a Linux system, the login shell executes the required script in the following order.First, execute/etc/profile this startup script, in/etc/profile This startup scripts will call all the startup scripts in the/ETC/PROFILE.D
650) this.width=650; "src=" Http://s1.51cto.com/wyfs02/M02/80/20/wKiom1c4dD-wFZx7AAAbgLBZiMU936.jpg "title=" Wkiol1cwdpjb1fbhaaabfqyv8vs885.jpg "alt=" Wkiom1c4dd-wfzx7aaabglbzimu936.jpg "/>
First, the great cycle of the For loop
For n in ' seq-w ' do pass= ' echo $RANDOM |md5sum| Cut-c 2-9 ' Useradd test$n echo $pass | passwd--stdin test$n echo-e "test$n \ t $pass" >>/tmp/user.logdoneNote:The-W usage of seqGeneration of random numbersCUT-C: intercepts the specified range of
ReferenceHttp://www.cnblogs.com/ggjucheng/archive/2012/10/21/2733028.htmlAdd a & after the command, such as Firefox &: Background execution.Jobs-l command lists How many commands are currently running in the backgroundCTRL + Z or send signal 17:
One. HIVE StreamingIn hive, when you need to implement a function that is not possible with a function in hive, you can use streaming to implement it. The principle can be understood as: using language other than the HQL statement, such as Python,
Http://www.linuxidc.com/Linux/2012-04/59093.htmPeople often write and use makefile, makefile often use the shell, but some of them need to pay attention to the place is not necessarilyWill pay attention, here are listed a few come, do not know
Write a shell script that requires you to print a line that contains only a single number in the document:#!/bin/bashfor i in ' cat/root/passwd ';d o n= ' echo $i |sed ' s/[^0-9]//g ' |wc-c ' #echo $n if [$n-eq 2];then Echo $i else continue
The essence of the hill sort is the grouping insert sort, which is also known as narrowing the incremental sort.The basic idea of this method is that the whole sequence of elements is divided into several sub-sequences (consisting of elements
The Linux shell is much more powerful in programming than Windows batch processing, both in loops and operations. Data types are not comparable. Here's a summary of some of the things that an individual does when it comes to working with arrays.1.
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