The essential point in programming is debugging, Shell script with its powerful function is desirable, of course, its powerful is not only embodied in the language of the implementation function, more powerful is its debugging function, below, I
What is login Shell: Login shell can be used by user login, such as/bin/bash,/bin/sh,/bin/csh ... The general Linux Default User shell is bash, which means you can log in and write commands.
Non-logon shell: The classic/bin/nologin is a non-login
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
Now the vast majority of users are using the Windows system, all know that the Windows system has 32-bit and 64-bit, in fact, the Linux system also has 32-bit and 64-bit, you know your Linux system is a few? Here's how you can use the shell to see
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
Write a script:
1, create a function, you can accept the Inode or block two parameters, if the user passed other parameters, then return error message 53 to the main program;
If the parameter passed is an inode, the usage of all the file system
Avoid common problems with timed task scripts
Many scripts are actually used in the form of timed tasks rather than hand-run. However, scripts that implement the same functionality may encounter different problems in both modes of operation.
A
Add Nginx reverse Proxy according to the entry parameter#!/bin/bash#set-XLog_path= "./proc/logs/shellexecute.log"log_path_back= "./proc/logs/shellexecute.log1"Nginxbasepath= "/home/netnumen/ems/ums-server/utils/nginx/nginx-1.4.7"Nginxconfpath=
DirectoryFirst, Shell Basic use of scripts1. Language Specification2. Variables3. Redirect (>,>>)Second, operators and common judgments1. Comparison operators2. Logical operators3. Common JudgmentsThird, the program structure1. Branch (if statement)2
awk is also a data processing tool and is a basic language that can customize variables, loop array regular functions, etc.awk-f delimiter ' commands command ' file' Condition {Execute} ' condition {execute} ' multiple conditions can use various
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
Special characters:#! Sign of the beginning; Delimiters with multiple commands together[Email protected] log]# echo A;echo b;echo CABC. Multiple functions:1. Equivalent to the source command2. As part of the file name (hide filename) (use ls-a to
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
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="
Method One: Switch to the directory where the shell script executes the shell script:cd/data/Shell. /hello.shThe./means to execute hello.sh under the current working directory. If you do not add./,bash may respond to an error message that could not
command-line editing operationsFunctionCtrl+b or LEFT ARROW keyMove one character to the left (move to the previous character)Ctrl+f or RIGHT ARROW keyMove one character to the right (move to the next character)CTRL + AMove to the beginning of the
In recent work, you need to use Java to invoke the shell script. Summarized as follows:
@RequestMapping ("/changepermission")Public String changepermission () {String ReturnCode = "";try {Process process = Runtime.getruntime (). EXEC
1. Minimization of All ProgramsUses comobj; var shell:olevariant;begin Shell: = Createoleobject (' shell.application '); Shell.minimizeall;end;2. Minimizing other programsspy++ 查找要最小化的程序classnamevar Indicador :Integer;begin // Find the window
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.