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 ~] $
A unix File System is a hierarchical structure composed of directories and files. The file attribute refers to the file type (normal file or directory), file size, file owner, File Permission, And the last modification time of the file. The stat and
Purpose:The stat command is used to display the status information of a file or file system, from the Coreutils software package, the general system comes with this command tool, which can obtain a lot of information related to the file system and
Parsing at three time points when using the stat command to view files in Linux
Sometimes, we need to use the stat command in Linux to view the detailed information of the file. In addition, what time is displayed by the ls-l command, the time stamp
There are times when we need to use the Stat command to view the details of a file. In addition, Lenovo, Ls-l command shows what time, Touch command to modify the timestamp of the file, the change is what time? Here we're going to test it
Mysqlimport: Error: 13, Can't get stat of problem solution this article introduces how to solve mysqlimport: Error: 13, the Can't get stat of method is described in detail for your reference. When I read the mysql user manual and saw the mysqlimport
1.stat has both a command and a function of the same name, used to obtain the main information in the Inode (i.e. file type, file permissions, creation/modification/access time, etc.), stat tracking Symbolic Links, lstat not tracking symbolic links.
Generally we all know the use of the Man manual to view the LIBC Library API usage, such as man strcpy, man stat ... In fact, some of the APIs in the kernel can also be compiled into the man manual, which is certainly a good material for learning
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.