Check the file content cat: displays the file content starting from the first line tac: displays the file content starting from the last line nl: displays the file content, by the way, output the row number more: the content of the file displayed on
8. PHP pattern design-enterprise pattern (1 ). 8 .. PHP mode design ---- enterprise mode (1) (* front-end controllers and application controllers are not split at the moment, all are integrated in the Command class) 1 registry mode for 8 .. PHP
The file modification time on the NFS file system displays the problem of Solaris + NetApp storage. the user's home directory is placed on NetApp and mounted to the local through autofs. You can use ls-l to view the touch file in your home directory.
Find command
General form of the Find command
Common options and examples for the Find command
Find and Xargs
grep command
General form of the grep command
grep regular Expression meta-character set (
The PHP version of the website cache to speed up the opening of the way to share, the need for friends can refer to the following instructions:
1. the compressed files are cached on the server, and the re-access reduces the re-compression time to
Php enables gzip compression to accelerate the website
Note:After the compressed files are cached on the server, the re-access will reduce the re-compression time and reduce the CPU usage. By setting the client file cache time, you can
This article adds to my favorites some of the questions or small issues that php developers often encounter. For more information, see.
The differences between the above functions,
1. Differences between isset () and empty ()Both are used to test
Note:1. the compressed files are cached on the server, and the re-access reduces the re-compression time to reduce the CPU usage.2. You can set the Client File Cache Time to reduce the number of re-requests by more than 85%.3. Because the image is
In Linux, some commands can greatly improve the efficiency. This article will introduce the find and grep commands. The two of them can be a must-have linux Command and I will use them almost every day.
Shell programming in Linux-awk
Five query commands in Linux
1. find
Use the find path command action
For example, find.-name a.txt is a file named a.txt in the current directory.
You can also add the time parameter:
-Atime access time
-Ctime: the time when the status is changed.
-
Description of the fs. futimesSync method in node. js, node. jsfs
Method description:
Changes the timestamp of the file referenced by the file descriptor provided by a file.
Change Timestamp
Syntax:
Copy codeThe Code is as follows:Fs. futimes (fd,
use the Find command to delete all VSSVER2.SCC files under LinuxDelete all VSSVER2.SCC filesThis is the purpose of my search for the Linux find command.1) Find/-name ' VSSVER2.SCC ' | Xargs rm-rf #先 (Recursive) Find the current path contains VSSVER2.
LinuxfindBrother even Linux training summary these timestamps includeCopy the code code as follows:Mtime file content Last modifiedThe time that the Atime file was read or accessedCTime File Status Change timeThe meaning of Mtime and atime is easy
The Find command is used in the format: Find options path expressionsThe find command actually has two options, one is "really yours" and the other is inside expressions. The first option is a total of 5:-P-l-h-d-o, where-D is used to display debug
Take the first blog to summarize the basic knowledge of Linux learned by previewing the third course, but put it in one piece, the estimated number of words will be too much, feel almost to re-open an article. Let's talk about it before summing it
1. Find commandThe Linux find command is very powerful for finding files, and can be used to find files by time, user group, filename, file type, permissions, size, etc.2. Use of FindSee the introduction through Find--help or man find.$
Linux file time resolutionthe reason for writing this small article is that you have done a project before, you need to periodically transfer the document, perhaps a professional noun called rollover. Then it is necessary to determine whether a 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.