1. Write a script to determine whether the shell of all users on the current system is a login shell (that is, the user's shell is not/sbin/nologin), the number of these two types of users, and the string comparison;#!/bin/bashlogin= ' grep-v '/sbin/
variable test Statement-testFunction: Used to test whether the variable is equal, is empty, file type, and so on.Format:Test tested Condition or []#范围: Integer, String. File1) integer test :Test int1-eq int2 test integers are equalTest int1-ge int2
PHP is no exception! A static method (property) is a property or method that is annotated with a static keyword (for example, a static property public static username;)The biggest difference between static and Non-static methods is that their life
Installation and configuration of FTP server (Ubuntu)1. Query whether to install VSFTPD:RPM-QA |grep vsftpd
(RPM Installation: Apt-get install RPM)
or query the current FTP process: Ps-ef|grep vsftpd
2. Install VSFTPD server: RPM-IVH vsftpd-*.rpm
Wrote a piece of code to perform some common operations on the session:phpnamespace Home\controller; UseThink\controller;classDemo1controllerextendsController { Public functionindex () {$user= M ("City")Select (); $this->assign (' list ',$user);
Simple design of PHP rest architecture
What is rest?
REST (representational state transfer) is a design and development approach to network applications that reduces the complexity of development and increases the scalability of the
In php, we can directly add a static method before a function or variable. it is similar to a static variable in use and does not need to be instantiated. we can directly use: called, next I will give you a few examples of static methods. PHP is no
This article describes the common usage of MySQL mysql_fetch function in PHP. The following describes how to use the fetch_array, mysql_fetch_row, and mysql_fetch_object functions. For more information, see
Mysql_fetch _ * column functionThe main
In the shell, if a piece of code needs to be called repeatedly, the code definition can be called a function, which is called directly in a later script. There are two ways to define a function:1. function functionname {}2, functionname () {}Example:
chmod u+x./shxx1. Simple Shell Programming SH example executionDisplay the directory and file in which you are located$cat Example#!/bin/sh#this is to show what a example looks likeecho "Our first example"Echo # thisecho "We Are"/bin/pwdEchoecho
pre-Class review : To find the sum of divisible by 3 divisible by 200# !/bin/bash -Isum= 0 for with {1..200};d o if [$[$i%3]-eq 0]; then let Su M+="Thesum is: $sum"Bash's knowledge points :Conditional testing: Making a logical operation on a
Installation and configuration of FTP server (Ubuntu)1. Query whether to install Vsftpd:rpm-qa |grep vsftpd(RPM Installation: Apt-get install RPM)or query the current FTP process: Ps-ef|grep vsftpd2. Install the VSFTPD server : Rpm-ivh vsftpd-*.rpm
Matches the coincidence between the csdn user database and the official user, and filters out overlapping users. Process: 1. the user database obtained from csdn is imported to the local trial editplus. the system prompts that the memory is
For pages that require authentication, it is best to use the apache server for authentication. However, the interface for apache server authentication is not user-friendly. In addition, not all cases can be verified using the apache server, such as
The leakage of CSDN user data seriously threatens the security of official users. Therefore, we hope to compare the user data of the two sites and filter out the overlapping users, notify the user to change the password in time to minimize the risk.
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.