How to find files in linux-Linux general technology-Linux technology and application information. The following is a detailed description. -Name: required. Indicates that the system is required to search by file name.
General Format: find/(dirname)-name filename
Specific file name search method:
If you know the file name of a file, but do not know the folder to which the file is put, or even layers of emb
[Root @ WWW ~] # Find [path] [Option] [action]Option not parameter:1. Time-related options: Total-atime,-ctime does not-mtime, which is described in-mtime-Mtime N: N indicates the file of the content that has been changed in "one day" before n days.Case;-Mtime + N: list the file names that have been changed before n days (excluding n days;-Mtime-N: name of the file whose content has been changed within n days (excluding n days.-Newer file: file is an
The testobject. Find method is a powerful part of functional tester, making it easier to maintain automated scripts. This introductory article shows you how to introduce testobject. Find to your automation framework.
Part 1: Basics of the testobject. Find Method
The testobject. Find method is a Java? Method, IBM? Rati
Each operating system is composed of thousands of different types of files. There are system files, user files, shared files, and so on. Sometimes we often forget where a file is stored on the hard disk. Searching for a file in Microsoft's WINDOWS operating system is quite simple. You only need to click "start"-"Search" on the desktop, and then you can find a file on the local hard disk in various ways, local Network, and even search for various files
Some time ago, we reviewed 15 examples of practical find commands (part 1 ). The search command can do much better than simply searching for name-based files (Part 1). In this article, let's discuss 15 examples of advanced find commands, including-access based on them, modify or change the time to search for a file. In comparison to a file, perform operations to find
The Find command is powerful and has many options for finding files, so this is a very useful and common Linux command. But he has a drawback is that the search time is relatively slow. The opposite is a locate command.
Command format for Find
Find Pathname-option [-print] [-exec-ok command] {} \; 2. Command parameters:The directory path that
Document directory
1.1.1 find command form
1.1.2 find Command Parameters
1.1.3 example of the find command
Because find has powerful functions, there are many options, and most of them are worth the time to understand. Even if the system contains a Network File System (NFS), the
Detailed description of the find command in linux and the linuxfind command
Http://blog.csdn.net/pipisorry/article/details/39831419
Find Syntax:
Find [start Directory] search for conditional operations
Find path option [-exec COMMAND {}\;]
Because the find command will perfo
One linux Command every day (19): find command overview link: One linux Command every day (1): ls command http://www.bkjia.com/ OS /210210/163049.html#linuxlinuxcommand every day (2): cd command Summary (3 ): pwd command Export (4): mkdir command http://www.bkjia.com/ OS /201210/1620.3.html#a linuxcommand every day (5): rm command Export (6): rmdir command http://www.bkjia.com/ OS /201210/1640 17. html; one linux Command every day (7): mv command runn
Common usage example of find in Linux middot; findpath-option [-print] [-exec-okcommand] {}\; #-print: output the searched file to the standard output #-execcommand {}\; ----- execute command operations on the retrieved file, {} and...
Common usage examples of find in Linux· Find path-option [-print] [-exec-OK command] {}\;#-Print: output the searched files to t
one of the common Linux commands:FindFind,find is a traversal lookup of the entire system without specifying a lookup directoryUse format: Find [specify Find directory] [find rule] [action executed after find][Specify find directo
) this.width=650; "src=" Http://s1.51cto.com/wyfs02/M02/80/61/wKioL1c_L6WBQBpOAAPC7hZw1vk024.png "title=" 4.PNG " alt= "Wkiol1c_l6wbqbpoaapc7hzw1vk024.png"/>LS-LC filename List the ctime of a filels-lu filename List the atime of a filels-l filename List the mtime of a file650) this.width=650; "src=" Http://s2.51cto.com/wyfs02/M01/80/61/wKioL1c_L7zzCrJkAAHibCzSk6E086.png "title=" 5.PNG " alt= "Wkiol1c_l7zzcrjkaahibczsk6e086.png"/>1, Search by nameIn the current directory and subdirectories, look
1. Find
Find [path]-Option [-print] [-Exec-OK command] {}\;
Search for files in a directory hierarchy
①-Print: outputs the searched file to the standard output, one file row
②-DeleteDelete the specified file
③-Exec command {}\; execute the command operation on the retrieved file. There is a space between {} And \;. "\;" is a fixed Terminator; {} will be replaced by the file
④-OK is the same as-ex
Original article:
Http://www.cnblogs.com/serendipity/articles/2133385.html
Http://linux.chinaunix.net/techdoc/develop/2007/08/21/965951.shtml
I. Find Command Format
1. The common form of the find command is;Find pathname-options [-print-Exec-OK...]
2. Parameters of the find command;Pathname: directory path searched by
To find a file, you can use the Whereis, locate command.When you actually troubleshoot a problem, find files that have changed over time, and find files that have a time relationship with a given file, you need to use the more powerful find command find.WhereisOptions-B: Find
When you use the Mtime parameter in the Find command, you will see the official explanation as follows:
-mtime NFile ' s data is last modified n*24 hours ago. The comments For-atime to understand how rounding affects the
Interpretation of the file modification times.
But in the use of a variety of reference useful + number,-number, no symbolic use, then what is the difference here?
Notice here N, if n is a value with the + number, delete n days ag
Find is a command that uses a higher frequency. It is often used in a system-specific directory to find files that have some kind of feature.Format of the Find command: Find [-path ...]-options [-print-exec-ok]Path: The directory path to find.~ Represents the $home directory
Author: Li Yunpeng (qqliyunpeng@sina.cn)Version number: 20170124Update Time: Original time: Copyright: This article is authorized by the following agreement, free reprint-non-commercial-non-derivative-keep the signature | Creative Commons by-nc-nd 3.0, reproduced please indicate the author and source.
General format:
Find Path-option [-print] [-exec-ok command] {} \;
Description#-print to output the found file to standard output#-exec command {} \; -
Features:Searches for a file in the directory structure and performs the specified action. This command provides quite a few look-up conditions and is powerful.Syntax:Find start directory looking for conditional actionsDescription:The Find command starts with the specified starting directory, searches its subdirectories recursively, finds the file that satisfies the search criteria, and takes relevant action on it.The search condition provided by this
Search by File Name:
This method is as easy to understand as searching for files in windows. If you put this file in a single folder, you can easily find it by using the common "ls" command, using the "find" command to search for it will not impress you. After all, the "find" command has more powerful functions than this. If you know the file name of a file, but
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.