Linux Find command

Source: Internet
Author: User

    Find/-name httpd.conf Find/    -name access_log 2>/dev/null    find/etc-name ' *srm* ' Find    /-amin-10 # Lookup in the Department Last 10 minutes of access to files find    /-atime-2 # Find files accessed in the last 48 hours of the system find    /-mmin-5 # Find files modified in the last 5 minutes of the system find    /-mtime-1 #查找在系 The last 24 hours in the system find/     -cmin-5 # Find files that have been changed in the last 5 minutes of the systems Find/    -ctime-1 #查找在系统中最后24小时里被改变状态的文件    Find/-user RE Da #查找在系统中属于fred这个用户的文件 Find    /-not-user Reda #查找在系统中不属于FRED这个用户的文件 find    /-group redagrp # Find text that belongs to REDAGRP group in the system Pieces     Find/-gid 501 #查找系统中属于组id为501的文件    Find/-user fred-a-group redagrp    Find/-user reda-o-user tracy
   find/-nouser #查找在系统中属于作废用户的文件 Find/    -empty # Find empty files in system or empty folders find    /-false #查找系统中总是错误的文件    Find/ -size +5k #查找系统中大于5k字节的文件
<pre name= "code" class= "HTML" >    Find/-size +5m #查找系统中大于5M字节的文件
Find/-size +5c #查找系统中大于5字节的文件 Find/-perm +6000 Find/-type b file type: B Block (buffered) device. C-character device. D directory. P Famous pipe (FIFO). F rule file. L Symbolic link. s socket. Find/-maxdepth 2-name Fred Find/tmp-size +10000000c-and-mtime +2 Find/-user reda-or-user Tracy Find/tmp! -user Reda Find/-name "httpd.conf"-ls Find/-user reda-exec ls-l {} \; Find/-user Reda-ok #确认后执行 Find/-user Reda | Xargs ls-l

Linux Find command

Contact Us

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.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.