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************************************************
These hidden properties are really helpful to the system-especially on the system security, the important thing is tight! However, it is emphasized that the CHATTR directive below will only take effect on the Ext2/ext3 file system, and other file
Communication is a more important concept. As long as there is more than one execution unit (concurrency), there is a possibility of communication.Concurrency on Linux is mainly divided into multiple processes (tasks) and multithreading. Linux also
Bit operation is common in kernel, the following is an example of the __set_bit function to analyze its principle:The kernel/include/asm-generic/bitops/non-atomic.h header file has the following
/**
* __set_bit-set a bit in memory
* @nr: The
Shared memory agrees that two or more processes share a given store, and because the data does not need to replicate back and forth, it is the fastest inter-process communication mechanism. Shared memory can be implemented through the mmap ()
1, ready to install software memcached and libevent (I am the latest version under the official website libevent-2.0.21-stable.tar.gz and memcached-1.4.21.tar.gz)2, Installation Libevent1) Unzip the fileTAR-ZXVF libevent-2.0.21-stable.tar.gz2)
How to modify IP information under Linux systemsI used to change it with ifconfig, and I always have to redo it after reboot. If you modify the configuration file, it will not be so troublesome ~A, modify the IP addressImmediate effect:# ifconfig
1. Install the virtual machine first2. Installing CentOS3, install MySQLTo install the MySQL client:Yum install MySQLTo install the MySQL server side:Yum Install Mysql-serverYum Install Mysql-develTo start the MySQL service:Service mysqld StartLogin:
Dennis * Richican Thomson Unix10 years, computer became very popular MIT-------mitSpace travel------->c languageUnicorn Ubuntu XubuntuFirst, the system startsPC Machine: Ubuntu Startup| Hardware detection|BIOS self-Test = = " BootleaderInitializing
The bash shell provides a for command to create a loop that repeats through a series of values. Each time a value in the series is reused, a defined set of commands is executed.The basic format for the for command is:for Var in listDoCommandsDone1.
The while command is a bit like a combination of if-then and for loops. The while test command returns a 0 exit state, looping through a set of commands.While basic format:While Test commandDoOther commandsDoneExample:#!/bin/bashVarl=5While
The until command is just the opposite of the while command, and the until command requires a test command that typically results in a non-0 exit state, as long as the exit status of the test command is not 0,bash the shell executes the command
Reprinted from: http://blog.chinaunix.net/uid-26611383-id-3761754.htmlA while ago read the "deep understanding of the Linux kernel" on the memory management of the part of the time spent a lot, but there are many problems are not very clear,
Install vsftp under LinuxLinux installation vsftpd is a technical work, but after mastering the method, everything becomes very simple. This article takes CentOS 6.4 as the configuration environment for VSFTPD installation.Command:Yum Install
Configuration of Dvwa under Linux (Fedora)1. Download Httpd,dvwa,mysql,mysqlserver, php-mysql,phpIn addition to the DVWA is under the official website, the rest of the services are installed by installYum install httpd, MySQL, Php-mysql, PHPIf there
Knowledge background (from: Baidu Encyclopedia):Lamp refers to the first letter of Linux (operating system), Apache HTTP Server, MySQL (sometimes referred to as MARIADB, database software) and PHP (sometimes also referred to as Perl or Python),
A barrier is a synchronization mechanism that coordinates the parallel work of multiple threads in Linux, allowing each thread to wait until all the cooperating threads reach a point and then continue to execute from that point, Pthread_join is a
This is why, is the coding problem or what, I use is hostgator in the local all normal upload up, is the run of the webpage is not normal, or permissions problem, I have set is 644, someone used it, back to the IT Industry homepage >>
-
DDoSdeflate-defend against/mitigate DDOS attacks in Linux
Preface
As in the real world, the Internet is full of intrigue. Website DDOS attacks have become the biggest headache for webmasters. In the absence of hardware protection, finding a software
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
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