1, the Linux file attributes;
The properties of a Linux file or directory mainly include: The node of the file or directory, the type, the permission mode, the number of links, the users and user groups, the time of the most recent visit or
Each file and directory in a Linux system has access permissions, which are used to determine who can access and manipulate files and directories.Access to a file or directory is divided into read-only, write-only, and executable three types. As an
Grammar
chmod (file,mode) parameter description
File required. Specify the files to be inspected.
mode is optional. Specify the new permissions.
The mode parameter consists of 4 digits:
The first number is always 0.
The second number stipulates the
Each file and directory in a Linux system has access permission to determine who can access and manipulate files and directories in any way.
File or directory access is divided into read-only, write-only and executable three kinds. In the case of a
Linux executes. sh file, prompting no such file or directory problem Resolution12-06-28 16:59love__coderLinux executes the. sh file, prompting no such file or directory issuesProblem descriptionWorkaroundAnalyze the cause, maybe because I have a
Chmod is one of the common commands in linux. It is mainly used to change the permissions of folders or files. It is often used in website deployment.
This command is executed by the root user or the user granted the relevant permissions.
Command
A file directory permission definitionFirst of all, let's meet the permissions definition of the file directory, and see the ls-l results below.We found a file or directory in front of the 10-bit information, the first bit represents the file type,
This article mainly introduces some functions commonly used in file and file system, the organization structure of file system and the hard link, symbolic link.By understanding this knowledge, you can have a more comprehensive understanding of the
[[Email protected]/]#Ls-ltotal 64dr-xr-xr-x 24096 dec 14 2012 Bin-rwxrwxr-x 44096 apr 19 2012 main.c
When [ D ] is the directory
When [ - ] is the document;
If [ l ] is indicated as a linked document (link file);
If [ b
Linux, Fedora, Ubuntu modify files, folder permissions the same way. A lot of people start to get into Linux when they're having headaches with Linux file permissions issues. Here we show you how to modify Linux file-folder permissions. Take the
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.