reproduced from: http://blog.csdn.net/brucexu1978/article/details/7721313
Linux process status (PS stat) R, S, D, T, Z, X
March 11, 2012 Posted by Jian
PS Progress Status: process state codesPROCESS State Codes
Here are the different values of
Stat usage: obtains the number of permissions for a file.
Question: The file attribute is-rw-r -- the corresponding permission is 644. How can I use a command to obtain the number corresponding to the permission ??
Example:
[Bkjia @ localhost ~] $
Stat function ExplanationTable header files: #include #include Define functions: Int stat (const char *file_name, struct stat *buf);Function Description: Obtains file information by filename, and is stored in the structure stat referred to by
Stat Function Description
Header file: # include # Include Define the function: int Stat (const char * file_name, struct stat * BUF );Function Description: get the file information through the filename file name and store it in the struct stat
Stat -- get more information than ls
Get tired of ls commands and want to see more interesting information about your files? Try stat!
The ls command may be one of the first commands learned by every Unix user, but it only displays a small part of
The LS command may be one of the first commands that every Unix user learns, but it only shows a small portion of the information the Stat command can give.
The stat command obtains information from the index node of the file. As you may have
Stat Instructions: File/File system details are displayed.The stat command is primarily used to display detailed information about a file or file system, which has the following syntax:Stat command-to display the details of the file, including Inode,
NOTE: Reprint please indicate the source
The specific information for the function is as follows:
function to get file information
Header file
function form
int stat (const char *path, struct stat *buf);int fstat
The Linux stat function explains:Table header files: #include #include Define functions: Int stat (const char *file_name, struct stat *buf);Function Description: Obtains file information by filename, and is stored in the structure stat referred to
Recently want to try the current red fried chicken Nodejs, in the installation of the configuration, the following error occurred:C:\NODEJS\NPMJS\BIN>CD. C:\NODEJS\NPMJS>CD. C:\NODEJS>NPM-V1.4.28C:\NODEJS>NPM config set prefix
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.