1.Ubuntu Create directory Command format: mkdir [options] directory ... Command features: The mkdir command enables you to create a directory named with the specified name at the specified location. The user who created the directory must have
What ls-al/tmp see today is RWXRWXRWT is surprised what this t is, how is it not X or-? Search for the following discovery:
This t represents the so-called sticky bit.
Sticky bit: This bit can be understood as an anti-delete bit.
The Chmodchmod command is used to modify the permissions of a file or folder.Have studied beforels -l, the first one--has been studied before, and substituting refers to this is a textThe following rw-r--r--is the file's permissionsThe first three
Under Linux, Web directories and file permissions must consider the security of the system as a whole. In general, for the directory, you need to set R (read) and X (execute) permissions, and some directories also need W (write permission), for
One, Linux file system three kinds of identities
1), file owner2), the same group of usersusers of the same user group can access the user group's files;Each account can be added to multiple user groups.Files in the same user group can also be set
chmod (change mode) changing permissions
What do you think about permissions?
[[email protected] ~]# ls-l total usage 8-rw-r--r--. 1 root root 0 June 8 14:16 2.txt-rw-------. 1 root root 7728 June 6 22:11 anaconda-ks.cfg.1-rw-r--r--.
Three types of identities for Linux file systems
File owner
Same group of usersUsers of the same user group can access the files of the user group;Each account can be joined to multiple user groups.Files in the same user group can also
The meaning of directory and file permissions in Linux
The meaning of file permission
R: You can read the specific contents of this document;
W: You can edit the contents of this file, including adding the details of the deleted file;
X: The
In Linux , everything is files, ordinary files are files, directories are files, hardware devices are files, so learning to understand The files in Linux is very important. Linux There are three types of files in:(1) ordinary documents: also
One, the directory of files under LinuxSummary: The Linux file system is a hierarchical, tree- like structure in which the topmost layer of the structure is the root directory "/", and then another directory is created in this directory. A deep
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.