Linux Command find (2), linux Command find
The previous article has introduced the test of expressions, which is the core of the find command. Now we will introduce the options and actions of expressions.(1) options
-D,-depth: the two serve the same purpose. man's manual and many blogs say that their role is to first find
Locate: (FAST)Non-real-time, fuzzy matching. Lookup is based on a system-wide database#updatedb manually generating a file databaseFind: (Slow speed)Real-time lookup,Exact Search,Support for many search criteriaTraverse all files in the specified directory to complete the lookup,Find Find Path Lookup criteria lookup to future processing operationsFind path: Default current directoryLookup criteria: Default
when using Find, just write the desired action in a file, you can use the exec to match the Find lookup, very convenient
(In some operating systems only the-e x E C option is allowed to execute commands such as L s or ls-l). Most users use this option to find old files and delete them. It is recommended that you take a look at the L S command to confirm t
Find Introduction to Commands: Real-time, accurate, and support for many search criteriaTraverse all files in the specified directory to complete the lookup, slow;1 . Command format:Locate filename directly with the file you need to find eg locate passwd System file database allThe file that contains the passwd.Find Find Path Lookup criteria finds a later proce
Original: fhqdddddd.blog.163.com/blog/static/186991542012417105729415/Find1. RoleThe function of the Find command is to search the directory for a file, and its use rights are for all users.2. FormatFind [Path][options][expression]path Specifies the directory path from which the system starts to look down the file down the directory tree. It is a list of paths that are separated from each other by spaces, and if you do not write path, the current dire
Find command syntax: find search path matching expression function: this command is used to find files that meet the conditions in a specified path. The search path can be multiple directories, different directories are separated by spaces (1) matching expression 1-namefilename: name of the file to be searched. You can use...
Unix/Linux use the Find command to find the file to find the empty directory: find/path-depth-typed-emptywww.2cto.com to Find the empty File: find/path-depth-typef-empty find the file b
Find and find FunctionsSyntax: find [path] [parameter] [action]
-Name filename: Find the file named filename.
-Iname filename: searches for the file named filename, but it is case insensitive.
-User username: searches for files whose owner is username.
-Group groupname: Find
Find command, findSyntax
Find [Option] [path...]Option
Option
Description
-Help or -- help
Online Help
-name
Shell ModeMatch the file name.It can be enclosed in quotation marks or not, but it is best to enclose it in quotation marks.
-iname
Similar to-name, but case-insensitive
-Ls
List file or directory names to standard output
-exe
Tags: err user print an ARP replacement csharp POS change# Linux File no create Time # Access use time # Modify Content modification Time # change state changed time (permissions, owner) # time is default in 24 hours, current time to 24 hours forward 0 days, 48-72 hours ahead for 2 days #- And and match two condition parameters to determine the time range-mtime +2-and-mtime-4#-or or match any one of the conditions FIND/ETC-name HTTP # finds
We can use the Find command on a Linux or Unix system to query all (all) hidden filesThe basic syntax is as follows:[[email protected] ~] #find/To find the article/Piece/clip/-name ". *"-printExplanation:1. ". *" indicates the name of the file to find. Because Linux/unix's hidden files and folder names are in "." Start
Find command -- find files modified within a specified time period. for example, if we want to find files modified within a specified time period in linux, we can use the find command. In fact, the find command is very powerful, below we use a few simple examples to learn th
Use the Find command to Find the files to be cleared.
Credit: Sandra H-S
One problem is that almost all file systems-including Unix and others-are constantly accumulating files. Almost no one is willing to spend time cleaning out the files they no longer use and organizing the file system. As a result, the files become messy and it is difficult to find useful th
We often find a file in Linux, but we do not know where to put it, you can use some of the following commands to search.Which view the location of the executable file, check the environment variablesWhereis View the location of the file, check the database, update it weeklyLocate with database to view file location, database check, weekly updateFind actual search hard disk query file name, check hard disk1, whichGrammar:[[email protected] ~]# which ex
1. find ldquo; elm in a directory. cc rdquo; file find/home/lijiajia/-nameelm. cc2. find the find/home/lijiajia/-name #39; * elm * #39; file with a certain character (such as quot; elm quot;) in the file name; find/home/lijiajia/
1.
Linux Find files and find files that contain specified content common commandsSource: This site original Linux more than 1,661 people onlookers no comment
Each operating system is made up of thousands of different kinds of files. The system itself includes files, users ' own files, shared files, and so on. Sometimes we often forget where a file is on the hard drive.
Looking up a file in Microsoft's Windows
Linux Security Basics: Use of the find command and use of the find command
The find command is used to find the specified file in the file system.
* Command Format: find pathname-option [-print-exex-OK]
1. pathname: directory path to be searched
~ Indicates the home Directo
The Difference : (1) The Find command is based on the attributes of the file , such as file name, file size, owner, owning group, whether it is empty, access time, modification time, etc.(2) grep is a search based on the contents of the file , and each line of the file is matched in a given pattern (patter). A. Find commandbasic format:Find path expression 1. Search by file name(1)
The following 4 main commands are found under Linux: Which, Whereis, locate, and find.(1) which [-a] cmdname1 cmdname2 ...Command parameters:-n Specifies the length of the file name, which must be greater than or equal to the longest file name in all files.-P is the same as the-n parameter, but the path to the file is included here.-W Specifies the width of the field at the output.-V Display version informationRole: Locate a command, from the environm
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.