01. Single-User operating system and multi-user operating system
Single User operating system : A computer can only be used by one user at a time, and a user will be able to enjoy all the hardware and software resources of the system alone.
Previous versions of Windows XP are single-user operating systems
Multi-user operating system : refers to a computer at the same time can be used by multiple users , multiple users together to enjoy all the hardware and software
This section is mainly about directory operations, involving the creation of directories, deleting directories, reading directories, etc.1 mkdir and RmDirCreate a directory with mkdir and delete the directory with rmdir.#include This function creates a new empty directory. And: Automatically created, file access mode is modified by creating a masking word from th
PHP simple way to get a list of directories, PHP get directory list
This article describes a simple way to get a list of directories in PHP. Share to everyone for your reference. The implementation method is as follows:
'." \ n "; } } Closedir ($handle); } } }?>
I hope this article is helpful to everyone's PHP programming.
http://www.bkjia.com/PHPjc/972627.html www.bkjia.com true http:/
Note: git cannot ignore files that have already been added to the trail. After creating an empty project, you should first create the. gitignore file.
Create a file. gitignore in the root directory of the project. In this file, each row corresponds to an ignore rule.
The lines starting with # are ignored by git.
1. Ignore files
*. Bak # ignore all files with the. Bak Extension
! Keep. Bak # except for the Keep. Bak file (not ignored)
Temp/test.txt # The test.txt file in the tempdirectory
Temp/*
Important File directories (System-assigned directories);Root: The file that holds the root userHOME: Files for ordinary users (new users)BIN: Directory CD to store common commands switch directory ls dirSBIN: Store commands that you want to be able to use with certain permissionsMNT: Default mount directory for CD-ROM and floppy driveETC: Store configuration-related files, Mysql,tomcat,USR: File Default in
Tips for finding large files or directories under a Linux systemThe command line is as followsFind. -type f-size +1000000kTips for finding large files or directories under a Linux systemWhen the hard disk space is not enough, we are very concerned about which directories or files are relatively large, to see if we can kill some, how to know?#已易读的格式显示指定目录或文件的大小,-s
The role of Linux directories will be supplemented and truncated later
Directory Name
Directory role
/bin/
The directory where the system commands are stored, which can be performed by both ordinary and super users. However, commands placed under the bin can also be executed in single-user mode
/sbin/
Save the commands associated with the system environment settings, only the superuser can use t
this fileThe owner is set to Xu, otherwise the user Xu cannot access the file.Syntax: chown [options] User or group fileDescription: Chown changes the owner of the specified file to the specified user or group. The user can be either a user name or a user ID.A group can be either a group name or a group ID. The file is a space-separated list of files to change permissions, and wildcard characters are supported.The options for this command have the following meanings:-R recursively changes the o
To create a directory:Command format: mkdir [-MPV] Directory-m Specifies the permissions to create the directory//mkdir-m 666 test1-P If the parent directory does not exist, create//Mkdir-p/TEST/1/2/3-V Displays the process information for creating the directory//with-M or-p withTo delete a directory:RmDirOnly limit and delete empty directories, infrequently used, rmdir-p can cascade delete a large list of directo
One, view the properties of directories and files1,ls commandCommand format: LS "options" directory or file
-L: Output in long format
-D: View the properties of a directory
650) this.width=650; "src=" http://s5.51cto.com/wyfs02/M00/7C/EB/wKioL1bcLh7S7DEFAAArvRonNjk018.jpg "title=" 1.jpg " alt= "Wkiol1bclh7s7defaaarvronnjk018.jpg"/>The meaning of the attribute in:
1th character: Indicates the type of file, "D" Directory, "B"
Encryption type
We have two main methods of encrypting files and directories. One is file system level encryption, in which you can selectively encrypt certain files or directories (e.g.,/home/alice). This is a very good way for me, and you don't have to reinstall everything to enable or test encryption. However, there are some drawbacks to file system-level encryption. For example, many modern application
In the project, some files are not required to submit local to the SVN warehouse, such as the config.php file, especially the definition of absolute path, or cache directory, image directory, etc., so for convenience, every time you submit SVN, you need to ignore these files, directories, Avoiding inadvertent submission causes other members of the team to modify their local version.
Linux under the SVN propedit svn:ignore command can be edited to ign
The permissions meaning of the file
R: Indicates that the contents of the file can be read
W: Indicates that you can edit, add, or modify the contents of the file, but do not have permission to delete the file
X: Indicates that the file can be executed
Permissions meaning of the directory
R: Indicates a permission to read the list of directory structures, that is, you can use the LS command to list the files in the directory
W: Change the permissions for the list of directory structures, i
The permissions meaning of the file
R: Indicates that the contents of the file can be read
W: Indicates that you can edit, add, or modify the contents of the file, but do not have permission to delete the file
X: Indicates that the file can be executed
Permissions meaning of the directory
R: Indicates a permission to read the list of directory structures, that is, you can use the LS command to list the files in the directory
W: Change the permissions for the list of directory structures, i
-mtime n Find files that have changed file data for the last n*24 hours in the system-empty find blank files or directories in the system, or folders that do not have subdirectories in the directory-false find files that are always wrong in the system-gid n Find file with file Number group ID n in the system-daystart test System in 24 hours from today's files, usage similar to-amin-help Display Command Summary (HELP)-maxdepth levels in a hierarchical
Application Scenario: A directory contains many software source Tarball, after the deployment of these software, will certainly generate a lot of useless temporary directory, you can script the way to delete all directories in the directory. When there are some special names in the directory, such as those directories are not supported by the Linux system special characters "/" (these files are usually supp
Linux file propertiesChanging the properties and permissions of a fileCHGRP: Changes the group to which the file belongs.Chown: Change the owner of the user.chmod: Change the permissions of the file.Example: chmod 777. BashThe three numbers are: owning user rights, user group permissions, other people's permissions.Permissions are: R:4 w:2 1:x composition.Permission meanings for directories and files:The meaning of the permissions to the file:
R
Introduction to CommandsThe ln command is used to connect files or directories, such as specifying more than two files or directories at the same time, and the final destination is a directory that already exists, and all of the previously specified files or directories are copied to the directory. If you specify multiple files or
Tags: partial mobile Linu Find special coverage relationship learning contentRecently have been learning Linux, the permissions of files and directories have a new understanding, feel like to figure out or need to spend a bit of thought. Note: 1. The following conditions are only for the owner of the file or directory (U); 2. For EXT4 file systems onlyLet's talk about how to create, delete, and modify files on the bottom of the system. The disk is div
PHP statistics directory of files and directories in the directory size method,
The examples in this article describe the files in the PHP statistics directory and the size of directories in the directory. Share to everyone for your reference, as follows:
"; } else{echo "". $fileName. " ===== ". Date (" Y-m-d h:i:s ", Filectime ($file))." = = = ". FileType ($file)." = = = ". Tosize (FileSize ($file)).""; }
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.