Some of the orders to be used in 2016/7/3 are recorded here, to be continued ...
2016/7/4 More ~
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
View IP Address: windows:ipconfig/allLinux:ifconfig Ifdown disable the
(1) how the shell executes a commandLinux commands fall into two categories: one is the shell's built-in command, and the other is a shell-independent command. Don't forget, the shell is only a program in the system, when it executes a non-built-in
string Slices${#var}: Returns the length of the string variable var
[Root@centos6 ~]# alpha= ' echo {A. Z} |tr-d "" \ Create a variable to assign 26 letters to it, and no spaces
[Root@centos6 ~]# echo $alpha
abcdefghijklmnopqrstuvwxyz
[ ROOT@CENTOS6
The problem is:4) Known: The content of/etc/hosts is
192.168.1.11 oldboy11.etiantian.org
192.168.1.21 oldboy21.etiantian.org
192.168.1.31 oldboy31.etiantian.org
#192.168.1.111 oldboy111.etiantian.org
Please use the shell script to realize, how can
Today, there is a problem that needs to be judged whether there is a. c file in the directory. I used the IF [-f *.c], using the-F and wildcard characters to determine if there is a. c file, while Linux always complains "unexpected operator", so
Introduction:
No matter which operating system you use, you are bound to encounter an application that behaves erratically, locking itself down and refusing to shut it down. In Linux (and Mac), you can force the end of it with a kill command. In
1, Documents:
1.1, the file access to 3 kinds of ways:
1 read (show file contents), 2 write (edit, delete, modify permission), 3 execute (Run shell script, program, etc. executable files).
1.2, the file can be divided into 3 kinds of permissions:
1. Peanut Shell
The purpose of peanut shells is to apply for a free domain name.
The application method is very simple, is to download a peanut Shell client, register a peanut shell account, and then you will get a free domain name.
My account name
No.1: Using expreg. R= ' Expr 4 + 5 'Echo $rNote : There should be a space between the operators and operands in the 4 + 5 expression
# finally found the reason, to force Ah.
In addition, for multiplication operator *, use expr needs to be added \
The most crude version
Shell code find. -name "*.java" |xargs wc-l|grep "Total" |awk ' {print $} ' find. -name "*.java" |xargs cat|wc-l #Output: 37634
The above two sentences are the same, but the second one is to use cat to merge the contents of
Original
To blur a lookup, you can write this. But Row_key can only be technical to the right of the query.
such as: row_1000, row_1001,row_1002,row_1003,row_1004,row_1005,row_1000,row_10006,
Scan followed by table name
Scan ' table ', {LIMIT = = 100
awk Command Personal summary (in CentOS 6.3 environment shell for example)
recently learned a little bit about the basics of the awk command in the shell. Below, according to what you learn to do some summary, only for the future. If there is any
1.6.2 Default shell environment variables and PATH variable settings
1. Default shell environment variables
Bashshell default will use some specific environment variables to define the system environment. You can always rely on the variables set
use of string comparison X "$variable" in Shell
This article refers to StackOverflow why does shell script comparisons often use X$var = Xyes? do not use double quotes "", do not use prefix x do not use double quotes "", use prefix x use double
There is also a way to go volume, often it is more convenient than the method of the previous article.
To understand this approach, consider the area shown on the left side of Figure 1, that is, the first quadrant axis and the area shown by the
Shell commands, which can be split by semicolons, or by line breaks. If you want to write multiple commands in one line, you can pass the ";" Segmentation.
Such as:
bldr:deyuy/bin/my_shell>>a=5;if [[A-GT 4]]; then echo ' OK '; fi;
If statement
Shell and Export commandsAfter the user logs on to the Linux system, a user shell is launched. In this shell, you can use the shell commandor declare a variable, you can also create and run a shell script program. When you run a shell script, the
Topic links\ (description\)There are \ ( n\) lengths ( 1,2,\ldots,n\) of beads, each with a \ (a_i\) species, each number of unlimited. How many methods are used to compose a string of length \ (n\) . Answer to \ (313\) modulo.\ (solution\)Make\
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.