Learning resources from: www.magedu.comMistakes are unavoidable in the learning process, and if found, they are also pointed out by the great gods.Some of the sample operations are related to historical operations, and if the previous example operation has not been performed, there may be some examples of operations that cannot be performed. Examples are for reference only (exercises are in the appendix).File Lookup:locate (not used): non-real-time, fuzzy matching, based on the whole system file
;
Hyphen (-): Connects two integers with hyphens, representing an integer range;
Slash (/): is actually a division slash, which is used to specify the time interval frequency.
Some examples
With this knowledge, we can look at some examples.
# Execute once per minute * * *
command
# Execute every 5 minutes */5 * * * *
command
# 15 minutes and 45 minutes per hour
15,45 * * * * * * * COMM and # Night 20:00-20:15 0-15 * * * * * * * *
command
# every Monday 10 o'clock in the m
Find command format:Find [-h] [-l] [-p] [-D debugopts] [-O level] [path ...] [Expression]Find command options:-name: Use file name lookup, support using wildcard characters-iname: Use file name lookup, case insensitive.-perm: Using file permissions to find/+ Permissions: Matches any class of permissions (U,g,o), which is output according to the "Permissions" cont
Find is a very common Linux command, but what we generally find out is not just to look at it, there will be further operations, this time the role of exec is revealed.EXEC explained :The-exec parameter is followed by command, which terminates with a; for the end of the flag, so the semicolon behind this command is indispensable, considering that the semicolons in each system have different meanings, so pre
Find Linux is a very powerful search command, through the man find to see the find manual , you can find the description of Find a screen, and estimated that it will take some time to read. Brother even Linux training Small series summed up the next, sorting out the commo
Working under Linux, some commands can be much more efficient.For example, the Find command, his brother can be considered a necessary Linux command, almost every day to use them.
Find command
General form of the Find command
Common options and examples for the Find command
Find Command Quick entry
1. Want to see if there is a file named "ABC" in the current folder and subfolders
Find. -name ABC
.: Represents the current directory
-name: means to find by name
2. Want to see if there is a "xyz" directory in the current folder and subfolders
Find. -type d-name xyz
-type: Indicates a
Linux usually uses Whereis or locate to check files, and if you can't find them, use Find. Why is find not a priority command?Because Whereis and locate are using the database to find data, it is quite fast and does not actually query the hard disk, it is relatively time-saving.Whereis [-bmsu] File or directory name -B
The Linux Find command searches for files in the directory structure and performs the specified actions. Linux under Find command provides a considerable number of search conditions, the function is very powerful. Because find has a powerful feature, it has a lot of options, and most of the options are worth taking time to understand. Even if the system contains
There are several search file commands under Linux:Which view the location of the executable file.Whereis View the location of the file.Locate to view the file location with the database.Find actual search hard disk query file name.Each command has his specific function,The purpose of the which command is to search for a system in the path specified by the PATH variable.The location of the command and returns the first search result.The Whereis command can only be used for program name searches,
Tags: find command usage and Linux Task SchedulerFile Search and Find tool:Install file name or file properties to locate and locate the path to the files;Locate: Fuzzy search tool;Based on a dedicated database to find, but only if the database must exist beforehand, and need to be updated regularly;Lookups are very fast, but the search accuracy is limited and li
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
first, the purposeThis article describes the various search commands that are commonly used in Linux environments. These find commands include which, Whereis, find, locate.Which use environment variables to find the path to the executable file, Whereis find the executable file, source code, the path of the man file, th
Tags: find practice1, find out the/tmp directory, the owner is not root, and the file name does not start with F filesSolution: find/tmp/! \ (-user root-o-name "f*" \)2, find/etc/, except the/ETC/SANE.D directory of all other. conf suffix filesSolution: find/etc/-path/etc/sa
The Locate,find command in Linux searches the file system for eligible files, but locate uses the database to search for data, so it's relatively fast.Locate relies on the pre-built index library, every day the system in the idle time through the periodic task to automatically complete the index library updates, manually update the index library needs to execute the command updatedb, because it is dependent on the database, The result of locate query
Description:
Linux operating system to learn its foundation is familiar with the use of various basic operation commands, although many commands, but for beginners, the master of the common commands are few. For example: File operation commands (File,mkdir,grep,diff,find,cat,ls, etc.), system security commands (Passwd,who,su,chomd,chown,umask, etc.), System management commands (Kill,top,free, At, etc., network operation commands (IFCONFIG,IP,PING,FTP,
Example 1
Typical operation, traversing all JS in the directory and using Yuicompressor compression
The code is as follows
Copy Code
For i in ' Find Asset/v2-name ' *.js ';Todoecho "Compress $i"Java-jar Tool/yuicompressor.jar--charset=utf8-o $i $i--nomungeDone
Example 2
Example of execution
Find files and directories in. C under the current directory
Th
There are two ways to find files:
First, locate: not real-time search, fuzzy matching, search based on system-wide file database; fast
# UpdateDB: is to manually generate a file database; fast
Second, find: real-time search, accurate matching, support a number of lookup standards, traversing the specified directory of all files to complete the search; slow
Use of the
Tags: Linux find find8.8 "Linux learning is not difficult" Linux Common Operations Command (8): Find command finds eligible filesYou can use the Find command to list eligible files in the file system, specifying the name, category, time, size, and permissions of the file, and only the files that are fully matched will be listed. command syntax:Find [ path ] [ opt
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
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.