Parameter count
Special Variable $ #可以存储执行脚本时包含的命令行参数个数!#!/bin/bashIf [$#-ne 2]ThenEcho Usage:input a BElseTotal=$[$ + $]echo the total is $totalFi[Email protected] ~]#./test33.sh 3 4The total is 7************************************************
When you specify a numeric value for a variable in bash, you can enclose the mathematical equation in the dollar sign and square brackets ($[operation])!Example 1:[email protected] ~]# cat test5.sh#!/bin/bashVar1=$[1 + 5]echo $var 1[Email protected]
http://blog.csdn.net/qingyue_bao/article/details/6544553
Format:More [options] file or more [-DLFPCSU] [-num] [+/pattern] [+linenum] [fileNames ...]Parameters:-P Displays the screen before the next screen.The-c function is the same as P
The case command checks multiple values of a single variable in a list-guided formatCommand format:Case variable inPattern 1 | PATTERN2) Command1;;Pattern 3) Command2;;*) default commands;;EsacThe case command compares the specified variable to a
The usual management of more than 130 Linux physical host, really understand the IP information of each host, application deployment is more trouble!So at the beginning of the deployment, you must plan:Write a script, put host IP, Administrator
Linux and Windows Sync data, rsync server Cwrsync clientLinux ServerGeneral systems are self-contained rsync, if not mounted on the system disk to install themselves, installation is very simple no, I said moreVi/etc/rsyncd.confUID = DaemonThis user
Linux assigns users no login permissions, while linux does not.
Linux assigns no login permission to users
Sudo shortdo username ALL = (ALL) NOPASSWD: ALL
How to assign permissions to different users in linux
Mkdir/home/da
Fun in the terminal: 6 interesting Linux Command Line tools
Previously, we showed some interesting articles about Linux Command Line commands. These articles tell us that Linux is not as complex as it looks. If we know how to use it, it will be very
Install the latest Wine development version on the RedHat and Debian-based systems.
Wine is a very popular and powerful open-source application on the Linux platform. With it, we can run Windows applications and games perfectly on the Linux platform.
SUSE Linux Enterprise Serve 12 trial experience [multiple images]
We all know that German models such as Mercedes-Benz and BMW are exquisite, reliable, and durable. SUSE Linux, also from the hands of Germans, suse is the only company that provides
Ctags basic operations
Ctags usage
Note:
A. ctags can analyze the program to generate the tags file;
B. The generated tags file can be searched by vi-t for struct, data type, and function name location, which is convenient;
Ctags installation:
Sudo
Configure iptables in CentOS6.6
If iptables is not installed, you can directly use yum to install it.
yum install -t iptables
Check the status of the iptables service,
service iptables status
If "iptables: Firewall is not running" appears, it
Multiple definition of 'err _ sys ', errsys
Address: http://www.cnblogs.com/yhLinux/p/4079930.html
Problem description:
[Click here to view the solution]
The codelist8-7.c uses the functions TELL_WAIT (), WAIT_PARENT (), and TELL_CHILD () in the
Zedboard kernel header file problem analysis, zedboard kernel header analysisChange the kernel version
The original digilent kernel version is linux-3.3-digilent changed to 3.3.0-xillinux-1.0-Rich +
Reference:
[Linux] job Management in BashI was not prepared to write this blog, because Task Management (job Management) is very common, so I feel that there is no need to write such a thing. But if you think about it, record it. Maybe someone will use it.
I
How to view and kill botnets in CentOS
The server expired yesterday. Because the previous server had a small space and could not meet the current service requirements, a new server was purchased and is currently being debugged and installed!
Build the LinuxSVN Server1. One Ubuntu PC, preferably the latest stable Ubuntu version 2. Run the following command to install subversion:
sudo apt-get updatesudo apt-get install subversion3. If the root path of the Code svn repository
Centos6.5 configure SSH password-free LoginCreate a new user: Useradd hadoopSet Password: Passwd hadoop,Enter your desired password, and then su hadoop switches to the user.Modify host name: Vim/etc/sysconfig/network: add the hostname master. After
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