I. Learn the knowledge reserve of shell programming 1. Related Linux system command applications; 2. Familiar with VI/Vim editor and related client software settings; 3. Basic services: NTP, crond, and network services: NFS, rsync, inotify,
From: http://www.cnbeta.com/modules.php? Name = News & file = article & SID = 5313
This is definitely a software that will surprise 100% of Gmail users.This 100 k software will generate a virtual hard disk partition Gmail drive on your hard disk,
Learning and using bash shell shortcuts
By fenng|It can be reproduced. During reprinting, it must be indicated by a hyperlink.ArticleSource and author information and copyright notice Web: http://www.dbanotes.net/techmemo/shell_shortcut.html
This
Shell scripts contain several Unix commands or executeProgram.
1. Run the shell script
There are two ways to run shell scripts. The first method is to use the sh command to take the shell script file name as a parameter. This method requires
Transferred from: Feng yunzhi:Http://witmax.cn/shell-echo-spaces.html
When the echo variable is in shell, only one space is printed in the variable, as shown below:
1 Sh-3.2$ TMP="A B d"2 Sh-3.2$ Echo $ TMP3 A B d
The solution is to add double
Use if... then
Single-layer, simple conditional
If [conditional statement]; then Command work content that can be executed when the conditional statement is set; FI
& Stands for and;
| Represents or;
["$ YN" = "Y"-
Until loop syntax format:
Until conditiondo statementdone Note: The condition when until enters the loop is: when the condition is not true, the loop is executed. The condition for until to enter the loop is exactly the opposite of while. The
#!/bin/bash## Judging the element is a file or a folderif [ $# -lt 1 ];then echo "ERROE!! Usage: ckfile.sh ARGS1 [ARGS2...]" exit 4fifor i in `seq 1 $#`doif [ -f $1 ];then echo $1 is a commom fileelif [ -d $1 ];then echo $1 is a directoryelse ec
[Copyright statement: reprinted. Please retain the Source: blog.csdn.net/gentleliu. Mail: shallnew at 163 dot com]
Like awk, sed is an important text filtering tool.
Calling SED is the same as calling awk. There are three methods:
1. Type A command
From: http://www.bllll.com/thread-43439-1-1.html
Shelling methods and techniques of common Shell
This article is a shell removal summary I made in my notebook when I was learning how to shell myself. It includes various shell shelling methods, the
From the programmer's perspective, shell itself is a program written in C language. From the user's perspective, shell is a bridge between the user and the Linux operating system. You can enter commands for execution and use shell script programming
Http://www.3800hk.com/Article/ OS /Linux/bckflu/2005-08-06/Article_37229_2.html
Code :--------------------------------------------------------------------------------
1. Create and run Shell programsWhat is a shell program? Simply put, a shell
1. 12 steps of bash command processing;
1. Divide command lines into tokens separated by fixed metacharacters;
SPACE, TAB, NEWLINE, ; , (, ),, |,&
The types of tokens include words, keywords, I/O redirections, and semicolons.2. Check the first mark
Standard Input/Output and redirection: The Fedora Core Linux is released in Linux, and the development team of Red Hat Linux will continue to participate in the development of this release.
Standard Input and Output
We know that when executing a
1. Write the backup and clear the old log Shell script:
Copy codeThe Code is as follows :#! /Bin/sh
# Backup eoslog
# Author rhao
# Date 2008-12-27
# Define Environment VariablesEOS_HOME =/home/eosSAS_HOME =/home/eos/SAS
# Test primary and
Access Parameters
You can use process. argv to access the command line parameters. It is an array containing the following content:
[NodeBinary, script, arg0, arg1,...]
That is to say, the first parameter starts from process. argv [2]. You can
By: dahubaobaoI. PrefaceWith the development of the Internet, more and more Unix/Linux systems are used, and it is no longer difficult to intrude into a Unix/Linux system. Usually, after the intrusion is successful, one or several backdoors will be
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