Find an introduction to the find command in Heiji, which is detailed!
Link: http://www.hackbase.com/tech/2008-04-29/40594_1.html
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 find command is e
Parameters of the find command;
Pathname: directory path searched by the find command. For example, use "." To represent the current directory, and use "/" to represent the root directory of the system.
-Print: The find command outputs matching files to the standard output.
-Exec: The find command executes the shell c
Find detailedThe Linux system has two commands to find files on the file system that match the query criteria:
Locate
Find
1. Locate commandThe locate command is primarily used to find system files with the following operating characteristics:
Find
I. Brief introduction to find1 and find sometimes it is necessary to search for files with certain characteristics in the system (such as file permissions, file owner, file length, file type, etc ). There may be many reasons for doing so. For security reasons or general system management tasks, it may be just...
I. find
1. find
Sometimes you may need to search fo
I. find
1. find
Sometimes you may need to search for files with certain characteristics in the system (such as file permissions, file owner, file length, file type, and so on ). There may be many reasons for doing so. For security reasons or general system management tasks, it may only be necessary to find a file that does not know where it is stored.
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.SCC files, and then kill each other by Xargs# (processing is done one
working under Linux, some commands can be much more efficient. This article will introduce you to the Find, grep command, his brother can be considered a necessary Linux command, I almost every day to use them. This article is structured as follows:Find Commandgeneral form of the Find commandcommon options and examples for the Find commandFind and Xargsgrep Comma
FindBecause find has powerful features, it has a lot of options, most of which are worth taking the time to look at. Even if the system contains a network file system (NFS), the Find command works equally well in the file system as long as you have the appropriate permissions.When running a very resource-intensive find command, many people tend to put it in the b
Ubuntu file search method (find command) Common Format: find pathname-options [-print-exec-OK] example: find/-name filename search file named filename in the root directory find/etc-name * s * search for files with s in the directory find/etc-name * S in the directory search
Find directory: Find/(Look in)-name ' find keyword '-type dFind files: Find/(Look in)-name look up keywords-printIf you need further information, you can refer to the Linux command in detail.Here are some excerpts:find Path-option [-print] [-exec-ok command] {}/;#-print output of the found file to standard output#-exec
Find directory: Find/(Look in)-name ' find keyword '-type dFind files: Find/(Look in)-name look up keywords-printIf you need further information, you can refer to the Linux command in detail.Here are some excerpts:find Path-option [-print] [-exec-ok command] {}/;#-print output of the found file to standard output#-exec
Explanation of parameters of common Linux commands (21)-find
I.Use the name option:
The file name option is the most common option for the find command. You can either use this option independently or use it with other options. You can use a certain file name pattern to match the file. Remember to use quotation marks to cause the file name pattern. No matter what the current path is, if you want to
Html> http://www.linuxsky.org/doc/newbie/200803/274.html
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 find command is equally valid in the file system, and you only have the corresponding permissions.When running a find command that cons
Examples of common usages of Find in Linux find Path-option [-print] [-exec-ok command] {} \;The parameters of the Find command;The directory path that the Pathname:find command looks for. For example, use. To represent the current directory, and/to represent the system root directory.The-print:find command outputs the matched file to standard output.The-exec:fin
Basic syntax: Find Path-option [-print] [-exec-ok command] {} \;The parameters of the Find command;The directory path that the Pathname:find command looks for. For example, use. To represent the current directory, and/to represent the system root directory.The-print:find command outputs the matched file to standard output.The-exec:find command executes the shell command given by the parameter to the matchin
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 Programming
Shell programming in Linux -- basic usage of sed command
Shell programming in Linux -- basic use of the grep command
Shell programming in Linux-basics and extensions of Regular Expressions
The structure of thi
(1) Search by filename and inode:
-name "file name": Supports the use of Glob
find/etc/-name "*pas?wd*"
*,?, [], [^]
-iname "file name": Case-insensitive
find/etc/-iname *pas?wd*
-inum n Press the inode number
to find Find-inum
-samefile name the same inode number
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 (base set)
Common options and examples of GREP commands
Tags: path options time digital ane Roo user Pat PDVThe usage is summarized as follows:Find Pathname-options [-print-exec-ok]Pathname: Finding a path-option: The main options are as follows:-name: Search by file name-perm: Search by file permissions-prune: Not found in the currently specified path. If the-depth option is specified at the same time, prune is ignored-user: Search by file Owner-group: Search by file group-mtime-n +n: Search by file change time. -n refers to the current time n days
The Find command is a common file Finder tool for Linux systems, and can also be used to perform appropriate operations on files found.FormatFind [path found] [find condition] [processing action]Default behavior:Find path: Default is not specified as current pathFind condition: defaults to all files under the current pathHandling actions: Default to PrintNote: If the search condition is a directory, you nee
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.