Same server, same hosting platform, multiple account issues
1, add key
Let's take Oschina for example. In order to better illustrate the problem, we are in the Oschina platform with account 111 new project test111 and Account 222 new project test22
1. Basic Concepts
A, I/O redirection is usually related to FD, Shell FD is usually 10, namely 0~9;
b, commonly used FD has 3, for 0 (stdin, standard input), 1 (stdout, standard output), 2 (stderr, standard error Output), the default and keyboard,
Upper:
Process oriented:Sequential executionSelect execution: If, caseLoop execution: For, while, until
One, for statement
Format:for variable in list;Statement 1;Statement 2;...DoneExample 1, write a script, add 10 users, and let each user's
Terminal printing
A terminal is an interactive tool through which users can interact with the shell environment. Printing text in a terminal is a basic task that most shell scripts and tools need to perform on a daily basis. Through the terminal
In the shell, see ">&1" and ">&2" always do not understand what meaning. After the search on the internet to dispel doubts. Actually, this is two kinds of output.
In a shell program, the most commonly used FD (file descriptor) is about three,
If statement formattingIf conditionThenCommandElseCommandFi, don't forget this ending.If statement forgets the end fiThree conditional expressions of Test.sh:line 14:syntax error:unexpected end of Fi if
IfCommandThen ifFunctionThenCommand executed
Suppose you want to test the web and some CGI, and you don't want to trouble Apache to install the full package. This quick shell script may be just the thing you need.
In short, a Web server is an application that sends a local text file to a
We can always see in Android development that the log log content of the program is full of screens, and the information that really makes sense to the developer is submerged in the torrent, leaving developers at a loss and seriously impacting
1. Open the Winows menu, enter the cmd command, click OK, and enter command mode.2. Enter Command D: (the D here indicates that your SDK is stored under the disk)then enter the CD3. Then select your SDK path and copy the path.4. Click cmd on the
installation of SQLite1. First is to download SQLite, you can download this page: http://www.sqlite.org/download.htmlThe latest version is: Sqlite-shell-win32-x86-3070701.zip This is the Windows SQLite command-line management tool, which can be used
The ability to remove comments from various files in a Linux operating system is often used to view a longer file without looking at annotations. Typically these files include *.c written in C, *.h files, CPP files, *.xml files, *.sh shell script
Interactive shell and non-interactive shell (interactive shell and non-interactive shell)
The interactive mode is executed on the terminal, the shell waits for your input, and executes the command you submitted immediately. This pattern is
Rman backup is easy to use and inexpensive for Oracle database backup and recovery. For non-catalog mode, it is undoubtedly the first choice to embed Rman scripts into shell scripts and then use crontab to make small database database backups. This
1.!! Command # indicates the previous outputHistory |grep #表示历史记录中的第23条! Vim #上一条vim记录Alias music= ' Cat test ' #表示别名Unalias Music #表示取消别名* #匹配一个或零个或多个字符? #匹配一个字符| #管道符号, drop the previous run result to the following commandCtrl + Z, FG, BG, Jobs
Shell double quotes, single quotes, back quotes, backslashes single quote ': Disallow reference to other variable values, $ as normal characters. Anti-quote ": Outputs the command execution result1. Double quotes ""• Use double quotation marks to
This article transferred from: http://blog.csdn.net/flowingflying/article/details/5069646
This article is also the fifth chapter of the Learning the Bash Shell 3rd Edition flow control reading notes, but we will not be limited to this. Flow
String-related operations are often involved in the shell batch process. There are a lot of command statements, such as: awk,sed can do string various operations. In fact, the shell built a series of operating symbols, you can achieve similar
1, #!/bin/shThe first line tells the operating system that the interpreter for this script is/bin/sh this executable file2. While loop:#!/bin/shSleep 1; echo "User"; \Sleep 1; echo "Password"; \While true; Do \echo "Output"Sleep 1; \Done3, the shell
On the shell:0 indicates standard input1 indicates standard output2 indicates standard error output> default to standard output redirect, same as 1>2>&1 means redirecting the standard error output to the standard output.&>file means to redirect both
Transfer from http://c.biancheng.net/cpp/view/2739.htmlAs already mentioned, variable names can only contain numbers, letters, and underscores, because some variables that contain other characters have special meanings, and such variables are called
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.