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
Find commandSyntax: Find search path Match expressionFunction: This command is used to find eligible files in the specified path, the search path can be multiple directories, and different directories are separated by spaces(1) Matching expression 1-
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
1. Use the-name option to find files in the current directory# Find. -name Tecmint.txt./tecmint.txt2. Find the file in the/home directory# Find/home-name Tecmint.txt/home/tecmint.txt3. Use name/ignoring to find files, ignoring case# Find/home-iname
Shell basics 2: Search Skills, use of find and xargs
Execute shell commands using exec or OK When using find, you only need to write the desired operation in a file, you can use exec to search with find, which
Our commonly used file search feature on Windows looks simple, but often finds it troublesome to find a file on Linux!According to the habits of personal use, I found: I would like to find a file in the general situation will know these parts, one
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.
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
1 File Lookup:2 find eligible files on the file system;3 4 File Lookup: Locate, find5 non-real-time lookup (Database Lookup): Locate6 Real-time find: find7 8 Locate:9 dependent on pre-built indexes; The index is built automatically when the system
In addition to basic operations like searching for files in a directory structure, you can also use the find command to perform some practical operations to make your command line easier.
This article will introduce 15 Linux find commands that are
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. find
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
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 *
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
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
==================== instance ==============Delete all. SVN directoriesThat's what I was looking for to find the Linux find command.1) Find. -type d-name '. SVN ' | Xargs rm-rf #先 (Recursive) Find the file directory under the current path that
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
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 by name: find/path...
In Unix/Linux, run the Find command to
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
Linux under Find command instance
$find ~-name "*.txt"-print #在 $HOME to check the. txt file and display the
$find. -name "*.txt"-print
$find. -name "[a-z]*"-PRI26NBSP; #对匹配的文件使用cpio命令, back them up to the
tape device-prune #忽略某个目录
$find. -
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.