Remove command exclude specified file in Shell environment

The file structure under the root directory is listed below +-root +-fileA.txt +-subdir1 +- a.txt +- b.txt +-c.txt +-subdir2 D.txt +-e.txt +-f.txt +-subdir3 +-subdir4 +- subdir5 +-subdir6 +-subdir7 +-subdir8

How to limit IP logon shell scripts after Linux exits

Linux system is much more secure than Windows system, it is a good program development environment, but there are some security problems. After the Linux user exits the system, there will still be more than one IP login risk, then how do you want to

How to remove the CPU shell?

The waste CPU opens the shell to open the process. 1. Preparation work 2, this step with a knife when you must be careful to be patient, do not scratch the CPU cover and the following section, do not be afraid of no place to row, the CPU

Shell script for automatically creating partitions

Topic: Automatically add partitions with shell script, implemented functions as follows: 1. Check that the extended partition is, and can be added, and if possible, set all remaining space to an extended partition 2. When an extended partition

Avoid escaping in the Shell script SQL statement * output

The script test.sh content is as follows, execute the script under/home/myname/,Home directory with file a.txt,test.log,test.sh#!/bin/bashSql= "SELECT * from EMP;"Echo $sqlecho $sql > Test.logResults after execution:Select test.sh a.txt test.log

Write Ngin startup script with Shell

#!/bin/bash[-f/etc/init.d/functions] &&. /etc/init.d/functionsPid=/application/nginx/logs/nginx.pidNginx=/application/nginx/sbin/nginxRed_color= ' \e[1;31m 'Green_color= ' \e[1;32m 'Yellow_color= ' \e[1;33m 'Blue_color= ' \e[1;34m 'pink= ' \e[1;35m '

Shell writes Ngin startup script

#!/bin/bash[-f/etc/init.d/functions] &&. /etc/init.d/functionsPid=/application/nginx/logs/nginx.pidNginx=/application/nginx/sbin/nginxRed_color= ' \e[1;31m 'Green_color= ' \e[1;32m 'Yellow_color= ' \e[1;33m 'Blue_color= ' \e[1;34m 'pink= ' \e[1;35m '

Bash Shell First lesson

Self-taught shell, and was taught by the teacher, English class do not study English four how to live, haha, that there is no data on my attractiveness, ah, for love and dream!!!Recall the file format: filename with an. sh extensionFile content at

Shell Script debugging

Bash is the default scripting language in a Linux system, and since it is a programming language, debugging of scripts is essential. Here's a simple debugging approach to bash:1 using Bash's parameter-X, such asBash-x a.sh+ for A in ' bafa{1..4} '+

A shell script for an automated deployment

Tag:conf    start failure     Path    kill   jar    web    automation    history   webapps    #!/bin/bash### #just for autodeploy## #author: zgniu######## #定义项目路径 ######## #item_war_dir = "/home/v2/tomcat8080/ Webapps/server-mobile-web "########

2. Shell Programming Exercise II

Design a shell program, add a new group to Class1, and then add 30 users belonging to this group, the user name in the form of Stdxx, where xx from 01 to 30!#/bin/bashgroupadd class1 for i in {1..30}do   if [  $I

A preliminary introduction to the shell

Introduction to the Shell under LinuxOverview:Each person after successfully landing Liux, the system will appear different cue symbols, such as $,~, #等, and then you can start to enter the command you need, if the command is correct, the system

Shell Learning Essays

Umask Set permission mask General default mask is 022 Directory highest permissions 777 File maximum permissions 666 Based on mask, permissions are 777-022 = 755 666-022 = 644   String test /p>  test   1

Shell Basics (ii) Cut usage

Shell Basics (ii) Cut usageSyntax: cut-d ' delimited character ' [-CF] n-D after specifying delimiters , single quotation marks, must be a single character-f Specifies the paragraph, which can be separated by commas with multiple numbers-C is

Shell some methods

String interception from the original address: http://www.jb51.net/article/56563.htmOne: string interceptionThere are VAR variables:var=http://www.aaa.com/123.htm1. # Intercept, delete the left character, leave the right character.echo ${var#*//}Www.

Get the time of the previous day and the use of the Shell's ${!3} and eval

Example 1:[email protected] opt]# cat a.sh #!/bin/bashsource/opt/b.txtaa=${!1}echo $AA [[email protected] opt]# cat B.txt Abc=1[[em AIL protected] opt]# sh a.sh ABC1Example 2:[email protected] opt]# cat a.sh #!/bin/basha=1b=aecho ${b}echo ${!b}eval

Shell Learning Summary (I.)

#! /bin/bash#The head can not be less, called the magic number, tell the computer is a shell script, with bash to execute it, otherwise unrecognized.Shell script file to end with. SH, not necessary, just good identification, specification.1.if

Simple Shell Programming

Simple shell programming by Dreamboy1#!/bin/Bash2 while true3 Do4 Echo5 Clear6 Echo7Echo"System Maintenance Menu"8Echo"============================ "9Echo"1) Display the system date"TenEcho"2) Modify the system date" OneEcho"3) Show logged in user"

A few questions about shell scripts

1: Give two files a record password, a record user, how to create a new user with Shell script?650) this.width=650; "Src=" https://s3.51cto.com/wyfs02/M02/8E/65/wKioL1i_jr6RehB6AADkqMMaJhE915.png-wh_500x0-wm_ 3-wmp_4-s_328620466.png "style="

Shell in parentheses summary: {}, (), (()), [], [[]]

Parentheses Summary() Single parenthesis Command group, the command in parentheses will open a new child shell execution Variables in parentheses cannot be used by left script Semicolon separated between commands

Total Pages: 541 1 .... 494 495 496 497 498 .... 541 Go to: GO

Contact Us

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

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.