Purpose and Requirements:When porting, you need to integrate the new content in the root filesystem rootfs1 into the ROOTFS2, but not the things rootfs2. That is, you can only compare the similarities and differences of two file systems, moving more
This article mainly introduced the shell script if condition judgment and the judgment condition summary, this article first gave the IF condition judgment the grammar, then gave the commonly used judgment condition summary, needs Friend can refer
Expect:is based onTcla relatively simple language for a free scripting toolused to implement automated and interactive task programs for communication without manual intervention. For example:ssh ftp , and so on, these programs normally need to
Logical-judgment logical expressions in shell scripts are used in [] (brackets):
-lt:=little than less than
-le:=little && wqual less than equals
-eq:=equal equals
-ne:=no Equal Not equal to
-gt:=greater than greater than
Script Realization Man-machine Game, Machine Application random method, combined with user input to give the result, the article has two methods, the first method is the logical aspect of the script, the second is easier to understand.One: The
Shell Script First-Custom create user and batch create user 1. build Linux users with shell scripts# vim/root/user.sh#!/bin/bash#通过脚本自定义创建用户read-p " Please enter the user name you want to create : " $Useradd $read-p " Please set the user password:
1, enterprise Shell face question 1: Batch generate random character file name caseUse the For loop to bulk create 10 HTML files in the/oldboy directory, where each file needs to contain 10 random lowercase characters plus a fixed string oldboy,
The full ln command reference: http://www.runoob.com/linux/linux-comm-ln.htmlLN: Creating a Connection File-The default is to create a hard connection, like copy, but two files are synchronizedCommand: Ln./java/android/aa.txt AAA-S: Create a soft
Encounter shell script need to collect parameter scene, with Getopts very convenientgetopts optstring name [arg ...] Example: Getopts "A:fs" OPTIONCommand Description:optstring lists all the parameters that the corresponding shell script can
by Francis_hao Oct 2,2017This article extracts the Man manual from bash.The related forms of arithmetic operations
Form
Meaning
((expression))
expression is performed according to the arithmetic
by Francis_hao Oct 1,2017This article extracts the Man Handbook from bashConditional expressionsThe conditional expression is composed of a composite command [[or] built-in command test and [used for testing file properties and string or numeric
CCat Zdd Browse the contents of a ZDD fileCat Zdd1 Zdd2 Browsing the contents of multiple filesCat-n ZDD Browse the contents of a file Zdd and display line numbersCD back to the start directory, that is, just logged into the system directory, CD
This article directory:1.1 Introduction1.2 TR Mapping1.3 Completely corresponding replacement1.4 Compression Symbols1.5 deleting symbols and complement sets1.1 IntroductionTR is primarily used for result set mapping, character compression, and
1. Gets the return value of the Shell function call:#!/bin/sh info () { cat jlb.sh} res= ' info ' echo ' state: ' $?echo ' res: ' ${res}description : res='info' This behavior calls function info, inside the symbol ' is not a single argument,
Compressed packagingCommon Compressed FilesWindows:rar, Zip, 7zLinux:.zip,. GZ,. bz2,. XZ,. Tar,. GZ,. tar.bz2,. Tar.xzGzip Compression ToolIt compresses directly behind the file name and canCommand: The meaning of gzip-d decompressionCommand
When tapping the code, it is often possible to print some progress or log information properly to help us track the execution of the program. However, these results or the log printing information to the screen is not a basis for future inspection
************************************************************************* * * * Original:blog.csdn.net/clark_xu Xu Changliang's Column************************************************************************? time to read the file#!/bin/bashFor file
HBase shell command.
Enter HBase Shell Console$HBASE _home/bin/hbase ShellIf you have Kerberos authentication, you need to use the appropriate keytab for authentication (using the Kinit command), and then use the HBase shell to enter the
Three ways to start bash shell1, log in as the default login shell2. Interactive shell as a non-login shell3. As a non-interactive shell for running scriptsFirst, login shellWhen you log in to a Linux system, the bash shell starts as a login shell,
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.