Game Information Network First Game Perspective - The Most Professional Gaming Entertainment Portal

phone-reading

m.6kgm.com

> EN > Gold Coins > Find >

SUse the Unix find command to search for filesFind

2018-04-28 18:21 Source:6KGM.COM Edit:admin
Click:Times

Some of the above information came fromEssential System Administration, Aeleen Frisch (OReilly & Associates, Inc., 1991).

To remove (with prompting) all files starting in the

find /prog -type f -size +1000 -print -name core -exec rm \;

of files not modified in over 20 days or not accessed in over 40 days, enter:

directory that have not been accessed in over 100 days, enter:

If you are affiliated with Indiana University and need help with a computing problem, please use the

By deult, multiple options are joined by and. You may specify or with the-oflag and the use of grouped parentheses. To match all files modified more than 7 days ago and accessed more than 30 days ago, use:

Matching criteria and actions may appear in any order and are evaluated from left to right.

language source code files starting at the current directory, enter:

At Indiana University, for personal or departmental Linux or Unix systems support, seeAt IU, how do I get support for Linux or Unix?

On some systems, the name of the starting directory must end with a

, with a trailing slash. On other systems, a trailing slash does not affect the command. A trailing slash is never needed when searching in

find /mydir \(-mtime +20 -o -atime +40\) -exec ls -l \;

You can use+(plus) and-(minus) modifiers with theatime,mtime, andsizecriteria to increase their usefulness, for example:

For more, consult the Unixmanual pageby entering at the Unix prompt:

To match all files modified more than 7 days ago or accessed more than 30 days ago, use:

Thefindcommand will begin looking in the starting directory you specify and proceed to search through all accessible subdirectories. You may specify more than one starting directory for searching.

find /mydir1 /mydir2 -size +2000 -atime +30 -print

You can specify the following actions for the list of files that thefindcommand locates:

Please enter your question or describe your problem

You have several options for matching criteria:

with a filename or matching expression, such as

Please provide your IU email address. If you currently have a problem receiving email at your IU account, enter an alternate email address.

Fill out this form to submit your comment to the IU Knowledge Base.

Executed commands must end with\;(a backslash and semi-colon) and may use(curly braces) as a placeholder for each file that thefindcommand locates. For example, for a long listing of each file found, use:

You may specify not with an exction point. To match all files ending in.txtexcept the filenotme.txt, use:

command will return nothing. Thus, the starting directory in the previous example would be designated as

To report all files starting in the directories

larger than 2,000 blocks (about 1,000KB) and that have not been accessed in over 30 days, enter:

Fill out this form to submit your issue to theUITS Support Center.

section above, or contact your campusSupport Center.

Please note that you must be affiliated with Indiana University to receive support.

Please provide your IU email address. If you currently have a problem receiving email at your IU account, enter an alternate email address.

Related articles
"FIFA 18" PS4 Edition Experience: Subtle Innovation
The experience of the "FIFA 18" PS4, Xbox One and PC versions is exactly the same, and [Detailed]
Game gossip
You may like
About us | Copyright Notice | Disclaimer | Contact us
Game Information Network First Game Perspective - The Most Professional Gaming Entertainment Portal
Disclaimer: All information in the game information network such as text, pictures, video, audio, etc. comes from the Internet. It does not mean that this site agrees with its opinions. This site is not responsible for its copyright. The originality of the related works, the texts in the text and the contents of the texts cannot be verified one by one. If you find content that violates your legal rights on this site, please contact us and this site will be immediately deleted!
CopyRight©1999-2013 WWW.6KGM.Com All Right Reserved