S Shell Learning Note v1.0table of Contents
1. What's shell
2. Hello World Program
2.1. SRC
2.2. Add run Privilege
2.3. Run shell
3. variables in Shell
3.1. System
Transferred from: http://hi.baidu.com/%CE%D2%D2%AA_%D1%A7_%CF%B0/blog/item/b3b5e723bb2ed1265243c1e4.htmlHow to read a file:First step: Pass the contents of the file to the while by pipe (|) or redirect (The second step is to call read in the while
[Email protected] ~]# mkdir scripts; CD scripts[Email protected] scripts]# VI sh01.sh#!/bin/bash declaring shell names# program: Description of Procedure Content# This program shows the "Hello world!" in the Your screen.# History:# 2005/08/23 Vbird
6. History commandThe "History" command is a historical record. It shows the history of all commands executed in the terminal.7. sudo commandThe "sudo" (Super User Do) command allows authorized users to execute commands from Superuser or other users.
Http://note.youdao.com/share/?id=a9d02257b639c94323c818bc38423919&type=notealias Command Alias:http://note.youdao.com/share/?id=cbcbd1156ab1f0835c4f76131dbf98e2&type=noteView Current User history commands History:http://note.youdao.com/share/?id=e878
computers with UEFI bios are not available to all netizens, and VMware (8.0 or more) is now being created to enable everyone to experience "UEFI" the "Uefi virtual Machine", which was provided last year, is now re-provided for the completeness of
A gentleman is open-minded and optimistic; A small person is narrow-minded and pessimistic."The gentleman is magnanimous, the villain long Obsession"Reference: Bird Brother's Linux private cuisine Basic Study (third edition)The basis of regular
Forwarding: Linux Shell's && | | When the shell executes a command, it returns a return value that is saved in the shell variable $? In When $? = = 0 o'clock, indicating successful execution; = = 1 o'clock, which indicates that the execution
#分析文件lanmp. SH, which introduced a series of function files in its head. lib/common.conf. lib/common.sh. lib/mysql.sh. lib/apache.sh . lib/nginx.sh. lib/php.sh. lib/na.sh. lib/libiconv.sh. lib/eaccelerator.sh. lib
The way to compare two strings for equality is:If ["$test" x = "Test" x]; ThenHere are a few key points:1 using a single equals sign2 Note that there is a space on each side of the equal sign: This is the UNIX shell requirement3 Notice the last X of
Variables can be set in the shell environment for easy user use. The user can customize the variables, which can be implemented directly in the shell environment through simple syntax, for example: "x=100" and so on. At the same time, there are
?I. OverviewAfter the successful landing of Linux, the system will appear different cue symbols, such as $,~, #等, and then you can start to enter the required commands. If the command is correct, the system will be executed according to the
Linux script (shell) programmingAh, yesterday on the Internet to see an article about Linux/unix shell, think of their last write this thing is also a year ago, think about it is almost forgotten.or tidy up, do a review, it may be used in the future,
Citation: Usually when you write a shell script, you'll find that there are many places that use the same code or the same functionality. If it's a small code, it doesn't matter. But if you use it more than once and it's the same code, I think
Transferred from: http://blog.csdn.net/wklken/article/details/6562098Sort,uniq,join,cut,paste,splitCommand--sortSort classifies many different fields in different column orderCommand format:Sort–cmu–o Out-putfile [Other options] *POS1 *pos2
Shell programming notes, shell programming1. Bash variableUser-Defined variables # local variablesEnvironment Variable # global variableLocation Parameter VariablePredefined VariablesX = val # value assignment$ X # CallThe default value of the
Array of Shell scripts, shell scripts
#! /Bin/bash # The operations on arrays in the shell that you must know. Arr = ("hello" "word" "you" "are" "a" "good" "boy") # arr = ('LS') # I like this method. Echo "------- for ----------------" for I in $ {
Install bash shell and solarisbashshell on solarisA bash vulnerability exists in earlier versions of sun solaris, which can be solved by uninstalling or upgrading.1. All pkg installation packages:Http://mirror.opencsw.org/opencsw/allpkgs/ 2,
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