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
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
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
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
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
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} '+
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
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
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 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
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.
#! /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 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"
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="
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
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