Find Path-option [-print] [-exec-ok command] {} \;The directory path that the Path:find command looks for. For example, use. To represent the current directory, and/to represent the system root directory.-print output of the found file to standard
1.1 Create the directory/data/hao, and create the file Hao.txt in the directory, and then write the contents "inet addr:10.0.0.8bcast:10.0.0.255 mask:255.255.255.0" in the file Hao.txt (not including quotation marks). (not less than two kinds of 2
1 query for script file namesWhich (look for "Execute file") # which [-a] command option or parameter:-A: Lists all the commands that can be found in the path directory, not just the first found command name NOTE: This command is based on the path
File Lookup
So-called file lookups are based on the various attributes of a file to find the corresponding file under a specific path.i. how files are searched
Real-time lookup: Traverse all files for conditional matching. The search
These time stamps include
The code is as follows:
Mtime file content Last modified time
Atime the time the file was read or accessed
CTime file state Change time
The meaning of Mtime and atime is easy to understand, and ctime needs more
Method Description:
Sync version of the Utimes (), synchronized mode to modify the file timestamp.
Grammar:
Copy Code code as follows:
Fs.utimessync (Path, atime, Mtime)
Because this method belongs to the FS module, it is
On the blog, we successfully installed and launched the Zookeeper server, zookeeper also provides a lot of convenient features to facilitate us to view the status of the server, add, modify, delete data (the entrance is zkserver.sh and zkcli.sh). It
"7.1" Directory and Path"7.1.2" directory-related actions
1 Special Directory list:
(1)
2 Directory Operation command, let's talk about a few common processing directory commands bar:
CDS: Transforming Catalogs
PWD: Displaying the current
/** This method is used to roll back user accounts the day before dawn*/ Public functionGetrollbackaccount ($startTime,$endTime){ //1. First check out the new user account for the day $sql _account= "Select DISTINCT '
A directory related to the path 1 directory:Exchange Directory Command CD. Represents this Layer directory.. Represents a previous level directory
Represents a previous working directory~ Represents the home directory where [current user
Childprocess
Because when I translateNodeOfAPIA lot of changes have been made, so here is the changed content.
NodeInChildprocessProvides a three-wayPopen (3)Methods, they areStdin, stdout, stderrThey all use the stream data format with
I. Overview
A few days ago, when I tried to tease Tom (Tomcat) via SSH, centos suddenly went down on the server. After grub is started, use the CD Linux rescue to fix the problem and prompt that the LINUX partition cannot be found. If you want to
before referring to the Find command , the-newer , -anewer, and -cnewer parameters can be used to find files in a time period. But often we do not have two of the exact time node files that we want to use, which requires the use of the Touch command
The pure version of IP data files can be used to optimize the query method, improve the format conversion efficiency, reduce the number of file reads, and quickly query IP addresses online. Greatly reduce the number of file reads, which should be
1. Find FilesThe Find command is a directory structure that searches for files and performs specific actionsThe Find command provides a fairly large number of search criteria and is powerful2. FormatUsage:find Pathname-options[-print]Find [-h] [-l] [
Description of the fs. utimesSync method in node. js, node. jsfs
Method description:
The file timestamp is modified in synchronous mode.
Syntax:
Copy codeThe Code is as follows:Fs. utimesSync (path, atime, mtime)
Because this method belongs to the
We often use the Find command for bulk operations. Such as: bulk delete old files, batch changes, time-based file statistics, file size based file statistics, and so on. In these operations, because the RM delete operation causes a change in the
In the Linux/unix system, our application generates log files every day, the application and database are backed up every day, log files and backup files accumulate a lot of storage space for a long time, and some log and backup files do not need to
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.