This subdirectory contains specific file system, file handle, Inode, dentry and quota information.1,/proc/sys/fs/aio-max-nrAIO-MAX-NR allows the maximum VALUE/PROC/SYS/FS/AIO-NR can grow to.2,/proc/sys/fs/aio-nrAio-nr shows the current system-wide
Php has been manipulating nginx for a question... the current nginx. php script is used to manipulate nginx. Such as start, stop, restart, and so on. Php and nginx are not root permissions. Using the execsystem function, some basic lscp commands are
The set of all system calls implemented by the operating system is the application programming interface (API ). Is the interface between applications and systems. Linux system calls include most common system calls and functions derived from system
Process ID
Each process has a unique process ID. Several special processes:
Process 0 is a kernel process, generally a scheduling process Swapper.
Process 1 init is a user process (run/sbin/init with root permission) and is responsible for
[APUE] Process Control (lower) and apue Process Control1. Change the user ID and group ID
You can use setuid to set the actual user ID and valid user ID. You can use the setgid function to set the actual group ID and valid group ID.
# Include #
Previously reproduced an article about the creation and debugging of core files using the settings, but in the use of some issues needing attention, such as in what circumstances will correctly produce the core file.List some common issues:One, how
when opening a file in a process using open, the kernel tests the permissions based on the valid user ID of the process, but what if we want to test the actual user ID of the process for the file permissions? Linux provides access functions to
First, installationCentOS or RHL is installed by default, and if it is not installed, it can be installed via Yum:Yum Install Nfs-utilsYum Install PortmapUbuntu system, installed via Apt-get:Apt-get Install Nfs-kernel-serverSecond, the configuration1
Stat, Fstat, Fstatat, and Lstat functions:
The STAT function returns the information structure associated with the pathname named file;
The Fstat function returns information about a file that has been opened in the file descriptor fd;
1. View the commands for which group the user belongs toID User (show user group and ID details)Groups user (only displays the name of the group to which the users belong)2, first explain the ls-l path (Ls-l is ll) display of the specific parameters,
(EXPRESSION)Expression is true expression true! EXPRESSIONExpression is false expression falseExpression1-a EXPRESSION2Both EXPRESSION1 and EXPRESSION2 are true both trueExpression1-o EXPRESSION2Either EXPRESSION1 or EXPRESSION2 is true one of
The following are from: http://blog.csdn.net/clozxy/article/details/5299054 Http://linux.chinaunix.net/techdoc/system/2007/06/17/960372.shtml http://tutu.spaces.eepw.com.cn/articles/article/item/70737 UmountFunction: In contrast to the function of
NAMEStat Get file propertiesThis function is located in the header file.Function Prototypes:int stat (const char *path, struct stat *buf);Number of references:Path file paths + file nameBUF Pointer to bufferreturn value:-1 encountered an error0
1. Dependent header Files#include 2. Function definition:Change the file-making permissions by passing in the name given in pathint chmod (const char *path,mode_t mode);To reset permissions for a file by passing in a file descriptorint fchmod
1. Dependent header Files#include #include #include 2. Function definition:By passing in the file path, the struct stat struct pointerint stat (const char *path, struct stat *buf);Gets the properties of the file with the file descriptor. This
Unix password file/etc/passwd records all users and the corresponding login password and other information. The owner of the/etc/passwd file is root and only the root user has permission to write to the file. But the UNIX system is actually allowing
1. string Judgments
STR1 = str2
True when two strings have the same content, length
Str1! = str2
True when strings str1 and str2 are unequal
-N str1
True when the length of a string is
Transferred from: Http://blog.163.com/[email protected]/blog/static/8442751200710255441327/1. Preface: Some programs can be compiled, but at run time there will be segment fault (segment error). This is usually caused by a pointer error. But this is
NAMEStat Get file propertiesThis function is located in the header fileFunction Prototypes:int stat (const char *path, struct stat *buf);Parameters:Path file paths + file nameBUF Pointer to bufferreturn value:-1 encountered an error0 successful
Green represents the process (the nature of the process) orange represents the file (the nature of the file). When the process tries to open the file, the kernel tests the following permissions:0. id is 0 (Superuser), which allows access. 1
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.