[-A file] true if the file exists. [-B file] If the file exists and is a special block file, it is true. [-C file] If the file exists and is a special word file, it is true. [-D file] If the file exists and is a directory, it is true. [-E file] If
If parameters in Shell in Linux[-A file] true if the file exists.[-B file] If the file exists and is a special block file, it is true.[-C file] If the file exists and is a special word file, it is true.[-D file] If the file exists and is a directory,
Prototype: int mkdir (const char * filename, mode_t Mode)
If the return value is 0, the operation is successful. If the return value is-1, an error occurs. To use this function, you must include the header file SYS/STAT. h.Mode indicates the
C ++ permanent Object Storage (Persistent Object Storage for C ++)
Introduction
Describes how to use object types to allocate and release objects from memory permanent Object Protocol Memory constructor to enable POST ++ installation of memory POST +
Atexit function and two special file permission bits. atexit function permission
Atexit Function
The prototype of the atexit function is void atexit (void (* func) (void ))It is a parameterThe return value and parameters are empty.Function
Shell script IF condition judgment and judgment condition details, shellifPreface:
No matter what programming language, conditional judgment is indispensable. SHELL is no exception.
if list thendo something hereelif list thendo another thing
CronTab Common Errors and crontab Common Errors
Environment Variable
When using environment variables, crontab may fail to normally access the environment variables in bashrc.
Therefore, you should be very careful when using crontab to access
The/etc/passwd file in UNIX systems contains information about each user that all systems need to know (the encrypted password may also be stored in the/etc/shadow file ).
/Etc/passwd contains the user's login name, encrypted password, user number,
By default, PHP sessions are saved through files. This has the following Disadvantages:
Session files are usually very small, but there are many files. It is a waste of space to save many such small files in the file system, and the efficiency is
Create user information table:
Copy codeThe Code is as follows: create table tbl_auth_user (
User_id VARCHAR (10) not null,
User_password CHAR (32) not null,
Primary key (user_id)
);
Insert into tbl_auth_user (user_id, user_password) VALUES
Linux shell test usage 1) determine the expression www.2cto.com if test (the expression is true) if test! Expression is false test expression 1-a expression 2 both are true test expression 1-o expression 2 two are true 2) judge the length of the
In linux shell, we sometimes need to copy a file in batches. The same principle applies to batch users. The knowledge used: test or [: can be used to compare the arithmetic comparison-equal eq-ne-gt greater than-ge is greater than or equal to-lt is
The following is a summary of my personal experience. I believe it is useful for UNIX or UNIX-clonefreebsd, openbsd, netbsd, linux, and etc that have been infiltrated:
First, you can use the following system commands and configuration files to track
Test switch and special parameters in Shell script, shell script1. Test Switch
The following table lists the meanings of the test commands and whether they can be used in test commands, bash, and ksh.
Switch
Test
Bash
Ksh
Inheritance of the Linux capability mechanism
1. Linux capability mechanism Overview
In previous UNIX systems, to check the permissions of processes, processes are divided into two types: privileged processes (valid user ID is 0) and non-privileged
The function is defined as follows:File * freopen (const char * filename, const char * mode, file * stream );In the Windows console, the standard output device is con. in Linux,/dev/tty is used to display the current terminal. The standard output
Compared with C ++,. Net is a more "dynamic" platform. Its dynamic capabilities are built on the reflection mechanism, while reflection is based on "metadata ".
As mentioned above, if a framework wants to do more things for our applications, it
The file status includes the file size, file owner, and file modification date. The information is stored separately from the file content.
Use the following function to get the file status.
# Include
Int Stat (const char * file_name, struct stat *
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.