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
Stat Instructions: File/File system details are displayed.The stat command is primarily used to display detailed information about a file or file system, which has the following syntax:Stat command-to display the details of the file, including Inode,
Use the which command to find the absolute path to the file
This command is more commonly used, such as finding the absolute path of bin, Python, vim, find, and cat[Email protected]:~# which find /usr/bin/Find [email protected]-172-31-8-212:~#
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
Reprinted from http://blog.chinaunix.net/u1/53398/showart_478990.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
A stopwatch program is also a heart disease for me, because I always want to write such a thing, but I always want to go over the GUI, so it is quite awkward, it may be due to the issue of learning MFC at school, but when I want to write such a
These days to see a small animation, feel a little meaning, on their own realization to see, first look atOK, the basic function of this effect is, a picture, fell from the top, after a few rounds, then stop, to achieve or relatively simple, but
Use of the Mtime parameter of the 1.find commandFor the use of find-mtime this parameter:-mtime N to find the file according to the file change time, n is an integer.n means that the file change time distance is n days, and-n means that the file
one, find command format1. The general form of the Find command is;find Pathname-options [-print-exec-ok ...]2, the parameters of the Find command;
The directory path that the Pathname:find command looks for. For example, use. To represent
Original link http://www.jb51.net/os/RedHat/1307.htmlThe Linux Find command searches the directory structure for files and performs the specified actions. The Linux Find command provides quite a lot of search criteria and is powerful. Because find
Linuxthree kinds of time in the filethree kinds of time for files :1. mtime file modification time
The contents of the file change. This includes the number of empty cells in a file, the change of characters, and other actions that do not
Linux divides clocks into system clocks (System clock) and hardware (Real time clock, referred to as RTC) clock two kinds . System time refers to the clock in the current Linux kernel, The hardware clock is the battery-powered motherboard
The 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.
Example: Delete/home/raven, including all files named Abc.txt in subdirectories:Find/home/raven-name Abc.txt | Xargs RM-RFIf Xargs is not used, then:Find/home/raven-name abc.txt-exec RM-FV {};Preface: About the Find commandBecause find has powerful
First: type--Query the type of a command-Query a command for internal or external commands;-linux commands include internal commands and external commands, you can use the type command to query whether a command is an internal command or an external
This example describes how Python lets a picture sort by the creation time in EXIF information. Share to everyone for your reference. The specific analysis is as follows:
We often take photos from different devices, such as cameras, cell phones,
Common usage examples of find in Linux· Find path-option [-print] [-exec-OK command] {}\;#-Print: output the searched files to the standard output#-Exec command {}\; ----- execute the command operation on the retrieved file. There is a space between
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
Search Directory: find/search range)-name 'search keyword '-typedSearch file: find/search range)-name search keyword-print
For more information, see Linux Command details.
The excerpt is as follows:
· Findpath-option [-print] [-exec-okcommand] {}/
echo "
File last Modified ". Date (" y-m-d h:i:s) ", $file _info[' mtime ']);
echo "
File last modified time "this paragraph read
appended with the. Date ("y-m-d h:i:s)", the connection is why the two double quotes are added, and why the quotation
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.