Single quotes: What you see is what you get: The contents of the single quotation mark are output as-is, or what you see in single quotes is what you output. Double quotes: Output The contents of the double quotation marks: If there are commands,
Rhel automatic installation of zookeeper shell scriptsA: This script runs the machine, Linux RHEL6B,c,d,... : Machine to be installed zookeeper cluster, Linux RHEL6First, on machine A that the script runs, determine that you can log on to the
Preface to the work today encountered a problem, if you copy the file in directory A to directory B (premise directory B does not have the file), and maintain the structure of the file in directory A. The project focuses on the following:
A Linux basic commands1.1. CP commandThe function of this command is to copy the given file or directory to another file or directory, which is very powerful.Syntax: CP [option] source file or directory destination file or directory1.2. MV
System Integrity Audit ToolThe shell script is as follows:The #!/bin/bash## variable is first declared to use shopt -s -o nounset# declaration # build Date date=$ (date + '%Y%m%d%H %m%s ') # join the approved directory #Dirs =
1: Errors in redirection and output are directed to the same file in the following way:such as:ls + 1>list.txt 2>&1 or ls + &>list.txtInstead of ls + 2>&1 list.txt2:-exec {} \; This is a command format, not a newline, there is a space in the middle
With Jenkins, you know, there's an add buld step in the build configuration, with two options:1. Execute Windows Batch Command2. Execute ShellThe 1th one is to execute the Windows command, and the 2nd is to execute the shell script.At first I
You often have to connect to Windows remotely, so rdesktop is a must.Recently installed the Gnome interface of the CENTOS7, found that the Rdesktop command has been used to become rdesktop-vrdp, but can be used on the line.To add a GUI to the
Tips:1, command completion function: key2, clear screen: ctrl+l3. Delete all contents before cursor: ctrl+u4. Command history: HistoricalThen:! The command label listed in history, you can execute that command. Such as:! 188Also: Press the arrow
Using the Linux shell to get the weather, it would be difficult, originally, really simple, single-digit code is done.Get weather for the corresponding cityAll weather information is obtained from the China Weather Network. Each city will correspond
Related command files 1,runcommandinthreads.sh Multi-threaded implementation of the main code cdir=$ (dirname $BASH _source) # #Current directory of this script file.source $cdir/logutil.shfunction createfile ()
The filepath parameter must be set for burpsuite upload. Step 1: select a JPG suffix.Step 2: Set the local proxy. The local port of burp is 8080.Step 3: Open burp suite and click graph.Step 4: Click Upload and the form uploaded at the same time will
Tag: script
[Copyright statement: reprinted. Please retain the Source: blog.csdn.net/gentleliu. Mail: shallnew at 163 dot com]It can be seen from the literal that the paste command and the cut command have the opposite function. The cut command
Suppose we define a variable: file =/dir1/dir2/dir3/my.file.txt
You can replace $ {} with different values: $ {file # */}: Delete the first/and its left string: dir1/dir2/dir3/my.file.txt $ {file # */}: Delete the last/and its left string:
In the shell script, ECHO Displays the content in color, and ECHO Displays the content in color. You need to use the-e parameter.The format is as follows:Echo-e "\ 033 [background color; text color M string \ 033 [0 m"For example:Echo-e "\ 033 [41; 3
1. Introduction to SED
Sed is an online editor that processes a row of content at a time. During processing, the currently processed rows are stored in the temporary buffer, called the pattern space. Then, the SED command is used to process the
Before the introduction, I first thought about a question: Sometimes we fail to enter the user's shell environment after switching the user through the su command. Why?
Login Shell:Complete logon process is required when Bash is obtained. That is to
Shell programming cutCut refers to the unit of action in the file. Based on the conditions you set, part of the content is cut and printed out. Output to standard output, not saved to any file-B Range: determined by byte range-c range: determined by
[Shell] dataset and difference set of data
Statistical data often requires files A and B. Now you need to know the data in the file, which are shared by A and B, which only appear in file A (or those only appear in file B ). You can use the uniq
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