Shell
The shell also has a way of executing commands called batching (Batch), in which the user writes a shell script, which has many commands that allow the shell to execute the commands one at a time without having to hit the command one by one.
1.shell scripts are small-case2.Unix special characters are: (; $ & * () [] ' "+ Use it to escape ()3.Shell comments begin with #4. Definition of functionFunction Fuction_name () {Command to execute}Use Function_name directly when calling.5. Control
Access to the server through SSH, it is inevitable to use compression, decompression, packaging, unpack, etc., this time the tar command is essential to a powerful tool. The most popular tar in Linux is though small, spite, and powerful.
The tar
The script is as follows:
#!/usr/bin/expect-f
Set Password Password
Spawn SCP username @ Target Machine IP: Path of the copy file location of local files
Set Timeout 300
Expect "user name @ Target machine IP ' password:" #注意: "User name @
Brief introduction:
The Ssh Secure Shell Client tool uses commands to remotely control Linux and facilitates file interaction with Linux systems, making it a convenient bridge between Linux and Windows.
We know that as Windows and Linux file
This article describes several tips on how to filter the ADB logcat output from the shell command line .
Development often see other people's log like a flood of instant fill the screen, to their useful information is drowned, affect the mood also
What is a shell?The shell is a scripting language aming_linux blog.lishiming.netYou can use logical judgments, loops, and other syntaxFunctions can be custom-definedThe shell is a collection of system commandsShell scripts enable automated
Shell Programming:Compiler: Also called interpreterThe shell provides us with another feature:Programming language: Turning human language into a machine-understandable languageMachine language (01 code), assembly language (still very low, growth
Super depth of the shell advanced programming practice, as of the current Shell programming courses in the domestic training institutions The most fine courses, do not believe in the level of students to see the performance.Course cows are not
problem Description: when SSH connects remotely to the server and then runs a service./catalina.sh start, and then the terminal opened and closed (disconnected SSH connection), found that the service is interrupted, resulting in the Web page is
SortThe sort command sorts the rows in the files specified by the file parameter and writes the results to standard output. If the file parameter specifies multiple files, the sort command connects the files and sorts them as a file.Sort
This article is in the study of "with the old boy learning Linux Koriyuki Shell Programming Practical" the knowledge points recorded in this book. I have benefited greatly from reading this book, but this is only my personal opinion. Now let's get
#一. Writing script files for system load monitoring#!/bin/bash#########################################################################This scripts is checking the system load,vision 0.1#Author: Hejunyi#E-mail:158****[email protected]################
1, write the service script/root/bin/testsrv.sh, complete the following requirements
650) this.width=650; "src=" Http://s3.51cto.com/wyfs02/M02/8A/90/wKiom1gz-oST82CyAAAqG5XhNMQ339.jpg "title=" Centos.jpg "style="
#ifelse_exam. Sh script is used to check whether the input string is a current directory #!/bin/bash# test user input is empty, and then determine if the current directory exists for the file if ["$"]then echo "what are NOT NULL "if [-E" $ "]
Recent continuous integration with jenkins+gitlab+ansible, automated deployment and version rollback. However, the Deploy plugin failed to do incremental upgrades and rollback operations, tossing a long time to decide to write their own script
One or eight basic character interception methods:1. Use the # operator. Removes the first occurrence of the substr left character (including substr) from the left side, preserving the right character.Usage is #*substrFor example:650) this.width=650;
Http://blog.chinaunix.net/uid-26827001-id-3154024.htmlFirst you see a lot of #!/bin/bash that start with this is the shell program that tells the system to interpret this script file# This is a comment line, when the line is validThe script is
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.