find第二天

1.找出/tmp目录下,属主不是root,且文件名不以f开头的文件

find /tmp ! -user root -a ! -name 'f*'
或者
find /tmp ! -user root ! -name 'f*'



这条命令 find /tmp ! -user root ! -name 'f*' 用于在 /tmp 目录下查找文件,并应用了两个条件来过滤结果。

find /tmp:从 /tmp 目录开始递归地查找文件和目录。

! -user root:这个条件用于排除那些属主为 root 的文件。! 是一个逻辑非操作符,它表示“不是”。因此,这个条件的意思是“不是由 root 用户拥有的文件”。

! -name 'f*':这个条件用于排除那些文件名以 f 开头的文件。同样地,! 表示“不是”,-name 'f*' 用于匹配文件名以 f 开头的文件。因此,这个条件的意思是“文件名不是以 f 开头的文件”。

这两个条件通过隐式的逻辑与(AND)连接在一起,意味着只有同时满足这两个条件的文件才会被列出。

因此,这条命令将列出 /tmp 目录下所有不是由 root 用户拥有且文件名不以 f 开头的文件。这包括直接位于 /tmp 目录下的文件,以及任何子目录下的文件,因为这些子目录也会被 find 命令递归地搜索。

请注意,这条命令只会列出文件,而不会列出目录,因为 find 命令默认不将目录作为匹配结果输出(除非你使用 -type d 来专门查找目录)。如果你想要同时看到文件和目录,你需要添加额外的条件或者使用其他选项来指定。

2.查找/etc/目录下,所有.conf后缀的文件

find /etc -type f -name '*.conf'






[root@master ~]# find /etc -type f -name '*.conf'
/etc/resolv.conf
/etc/yum/protected.d/systemd.conf
/etc/yum/pluginconf.d/fastestmirror.conf
/etc/yum/pluginconf.d/langpacks.conf
/etc/yum/version-groups.conf
/etc/yum/yum-cron-hourly.conf
/etc/yum/yum-cron.conf
/etc/tuned/tuned-main.conf
/etc/krb5.conf
/etc/man_db.conf
/etc/systemd/bootchart.conf
/etc/systemd/journald.conf
/etc/systemd/logind.conf
/etc/systemd/system.conf
/etc/systemd/user.conf
/etc/systemd/coredump.conf
/etc/asound.conf
/etc/udev/udev.conf
/etc/httpd/conf/httpd.conf
/etc/httpd/conf.d/autoindex.conf
/etc/httpd/conf.d/userdir.conf
/etc/httpd/conf.d/welcome.conf
/etc/httpd/conf.modules.d/00-base.conf
/etc/httpd/conf.modules.d/00-dav.conf
/etc/httpd/conf.modules.d/00-lua.conf
/etc/httpd/conf.modules.d/00-mpm.conf
/etc/httpd/conf.modules.d/00-proxy.conf
/etc/httpd/conf.modules.d/00-systemd.conf
/etc/httpd/conf.modules.d/01-cgi.conf
/etc/host.conf
/etc/sysctl.conf
/etc/wpa_supplicant/wpa_supplicant.conf
/etc/X11/xorg.conf.d/00-keyboard.conf
/etc/prelink.conf.d/nss-softokn-prelink.conf
/etc/prelink.conf.d/fipscheck.conf
/etc/prelink.conf.d/grub2.conf
/etc/ld.so.conf
/etc/ld.so.conf.d/mariadb-x86_64.conf
/etc/ld.so.conf.d/kernel-3.10.0-229.el7.x86_64.conf
/etc/nsswitch.conf
/etc/NetworkManager/conf.d/10-ibft-plugin.conf
/etc/NetworkManager/NetworkManager.conf
/etc/dbus-1/system.d/org.freedesktop.hostname1.conf
/etc/dbus-1/system.d/org.freedesktop.locale1.conf
/etc/dbus-1/system.d/org.freedesktop.login1.conf
/etc/dbus-1/system.d/org.freedesktop.machine1.conf
/etc/dbus-1/system.d/org.freedesktop.systemd1.conf
/etc/dbus-1/system.d/org.freedesktop.timedate1.conf
/etc/dbus-1/system.d/org.freedesktop.PolicyKit1.conf
/etc/dbus-1/system.d/wpa_supplicant.conf
/etc/dbus-1/system.d/dnsmasq.conf
/etc/dbus-1/system.d/nm-avahi-autoipd.conf
/etc/dbus-1/system.d/nm-dispatcher.conf
/etc/dbus-1/system.d/nm-ifcfg-rh.conf
/etc/dbus-1/system.d/org.freedesktop.NetworkManager.conf
/etc/dbus-1/system.d/teamd.conf
/etc/dbus-1/system.d/FirewallD.conf
/etc/dbus-1/system.d/com.redhat.tuned.conf
/etc/dbus-1/system.d/org.freedesktop.import1.conf
/etc/dbus-1/session.conf
/etc/dbus-1/system.conf
/etc/libaudit.conf
/etc/tcsd.conf
/etc/dnsmasq.conf
/etc/dracut.conf
/etc/yum.conf
/etc/plymouth/plymouthd.conf
/etc/dracut.conf.d/90-eno-fix.conf
/etc/sasl2/smtpd.conf
/etc/firewalld/firewalld.conf
/etc/selinux/semanage.conf
/etc/selinux/targeted/setrans.conf
/etc/security/pwquality.conf
/etc/security/access.conf
/etc/security/chroot.conf
/etc/security/group.conf
/etc/security/limits.conf
/etc/security/limits.d/20-nproc.conf
/etc/security/namespace.conf
/etc/security/pam_env.conf
/etc/security/sepermit.conf
/etc/security/time.conf
/etc/modprobe.d/mlx4.conf
/etc/audisp/audispd.conf
/etc/audisp/plugins.d/af_unix.conf
/etc/audisp/plugins.d/syslog.conf
/etc/rdma/mlx4.conf
/etc/rdma/rdma.conf
/etc/openldap/ldap.conf
/etc/libuser.conf
/etc/audit/auditd.conf
/etc/rsyslog.d/listen.conf
/etc/sestatus.conf
/etc/kdump.conf
/etc/logrotate.conf
/etc/depmod.d/dist.conf
/etc/rsyslog.conf
/etc/sudo-ldap.conf
/etc/sudo.conf
/etc/e2fsck.conf
/etc/mke2fs.conf
/etc/vconsole.conf
/etc/locale.conf
/etc/autofs.conf
/etc/autofs_ldap_auth.conf

3.查找/var目录下属主为root,且属组为mail的所有文件

find /var -type f -user root -group mail

[root@master ~]# find /var -type f -user root -group mail
/var/spool/mail/root

4.查找/var目录下7天以前,同时属主不为root,也不是postfix的文件

find /var -type f ! -user root ! -user postfix -mtime +7


[root@master ~]# find /var -type f ! -user root ! -user postfix -mtime +7
/var/spool/mail/wang

5.查找/etc目录下大于1M且类型为普通文件的所有文件

find /etc -type f -size +1M


[root@master ~]# find /etc -type f -size +1M
/etc/udev/hwdb.bin
/etc/selinux/targeted/policy/policy.29

6.查找/etc目录下所有用户都没有写权限的文件

find /etc -type f ! -perm /u=w,g=w,o=w
或者
find /etc -type f ! -perm /a+w

find /etc:从/etc目录开始搜索。
-type f:只匹配普通文件。
! -perm /a+w:查找那些所有用户(包括文件所有者、所属组和其他用户)都没有写权限的文件。这里,! 是逻辑非操作符,-perm /a+w 用来匹配那些至少有一个用户有写权限的文件。通过添加 !,我们排除了这些文件,只留下那些没有任何用户有写权限的文件



[root@master ~]# find /etc -type f ! -perm /u=w,g=w,o=w
/etc/pki/ca-trust/extracted/java/cacerts
/etc/pki/ca-trust/extracted/openssl/ca-bundle.trust.crt
/etc/pki/ca-trust/extracted/pem/tls-ca-bundle.pem
/etc/pki/ca-trust/extracted/pem/email-ca-bundle.pem
/etc/pki/ca-trust/extracted/pem/objsign-ca-bundle.pem
/etc/udev/hwdb.bin
/etc/machine-id
/etc/gshadow
/etc/shadow
/etc/ld.so.conf.d/kernel-3.10.0-229.el7.x86_64.conf
/etc/openldap/certs/password
/etc/shadow-
/etc/gshadow-
/etc/sudoers



[root@master ~]# find /etc -type f ! -perm /a+w
/etc/pki/ca-trust/extracted/java/cacerts
/etc/pki/ca-trust/extracted/openssl/ca-bundle.trust.crt
/etc/pki/ca-trust/extracted/pem/tls-ca-bundle.pem
/etc/pki/ca-trust/extracted/pem/email-ca-bundle.pem
/etc/pki/ca-trust/extracted/pem/objsign-ca-bundle.pem
/etc/udev/hwdb.bin
/etc/machine-id
/etc/gshadow
/etc/shadow
/etc/ld.so.conf.d/kernel-3.10.0-229.el7.x86_64.conf
/etc/openldap/certs/password
/etc/shadow-
/etc/gshadow-
/etc/sudoers
[root@master ~]# find /etc -type f ! -perm /a+w -ls
402817239  176 -r--r--r--   1 root     root       179212 Feb 29 23:56 /etc/pki/ca-trust/extracted/java/cacerts
123470  316 -r--r--r--   1 root     root       321332 Feb 29 23:56 /etc/pki/ca-trust/extracted/openssl/ca-bundle.trust.crt
134281078  236 -r--r--r--   1 root     root       240762 Feb 29 23:56 /etc/pki/ca-trust/extracted/pem/tls-ca-bundle.pem
134281079  188 -r--r--r--   1 root     root       191741 Feb 29 23:56 /etc/pki/ca-trust/extracted/pem/email-ca-bundle.pem
134281080  188 -r--r--r--   1 root     root       191772 Feb 29 23:56 /etc/pki/ca-trust/extracted/pem/objsign-ca-bundle.pem
134442673 6712 -r--r--r--   1 root     root      6870870 Mar  1 01:45 /etc/udev/hwdb.bin
268979108    4 -r--r--r--   1 root     root           33 Feb 29 23:56 /etc/machine-id
269421087    4 ----------   1 root     root         1458 Mar 13 02:54 /etc/gshadow
268878741    4 ----------   1 root     root         3926 Mar 13 02:54 /etc/shadow
134476637    4 -r--r--r--   1 root     root           63 Mar  6  2015 /etc/ld.so.conf.d/kernel-3.10.0-229.el7.x86_64.conf
134338029    4 -r--------   1 root     root           45 Feb 29 23:56 /etc/openldap/certs/password
268626350    4 ----------   1 root     root         3895 Mar 11 04:05 /etc/shadow-
268626342    4 ----------   1 root     root         1445 Mar 11 04:05 /etc/gshadow-
269197645    4 -r--r-----   1 root     root         4000 Mar  6  2015 /etc/sudoers


7.查找/目录下最后创建时间是3天前,后缀是*.log的文件

find / -type f -name '*.log' -ctime -3

[root@master ~]# find / -type f -name '*.log' -ctime -3
/root/acclog.log
/root/1.log
/root/3.log
/root/4.log
/root/5.log
/root/6.log
/root/7.log
/root/8.log
/root/9.log
/root/10.log
/root/11.log
/root/12.log
/root/13.log
/root/14.log
/root/15.log
/root/16.log
/root/17.log
/root/18.log
/root/19.log
/root/20.log
/root/2.log
/root/access.log
/tmp/acclog.log
/tmp/1.log
/tmp/2.log
/tmp/3.log
/tmp/4.log
/tmp/5.log
/tmp/6.log
/tmp/7.log
/tmp/8.log
/tmp/9.log
/tmp/10.log
/tmp/11.log
/tmp/12.log
/tmp/13.log
/tmp/14.log
/tmp/15.log
/tmp/16.log
/tmp/17.log
/tmp/18.log
/tmp/19.log
/tmp/20.log
/var/log/audit/audit.log
/var/log/tuned/tuned.log
/var/log/yum.log
/var/log/boot.log
/home/.access.log



8.查找/目录下文件名包含txt的文件**

find / -type f -name '*txt*'







[root@master ~]# find / -type f -name '*txt*'
/data/test.txt
/etc/pki/nssdb/pkcs11.txt
/etc/selinux/test.txt
/root/.1.txt.swp
/tmp/{1.10}.txt
/tmp/1.txt
/tmp/2.txt
/tmp/3.txt
/tmp/4.txt
/tmp/5.txt
/tmp/6.txt
/tmp/7.txt
/tmp/8.txt
/tmp/9.txt
/tmp/10.txt
/var/cache/yum/x86_64/7/timedhosts.txt
/usr/bin/httxt2dbm
/usr/lib/firmware/TDA7706_OM_v2.5.1_boot.txt
/usr/lib/firmware/TDA7706_OM_v3.0.2_boot.txt
/usr/lib/firmware/ar3k/1020200/RamPatch.txt
/usr/lib/firmware/ar3k/1020201/RamPatch.txt
/usr/lib/firmware/ar3k/30000/RamPatch.txt
/usr/lib/firmware/ar3k/30101/RamPatch.txt
/usr/lib/firmware/ar3k/30101coex/RamPatch.txt
/usr/lib/firmware/ivtv-firmware-license-end-user.txt
/usr/lib/firmware/ivtv-firmware-license-oemihvisv.txt
/usr/lib/python2.7/site-packages/decorator-3.4.0-py2.7.egg-info/SOURCES.txt
/usr/lib/python2.7/site-packages/decorator-3.4.0-py2.7.egg-info/dependency_links.txt
/usr/lib/python2.7/site-packages/decorator-3.4.0-py2.7.egg-info/top_level.txt
/usr/lib/python2.7/site-packages/backports.ssl_match_hostname-3.4.0.2-py2.7.egg-info/SOURCES.txt
/usr/lib/python2.7/site-packages/backports.ssl_match_hostname-3.4.0.2-py2.7.egg-info/dependency_links.txt
/usr/lib/python2.7/site-packages/backports.ssl_match_hostname-3.4.0.2-py2.7.egg-info/top_level.txt
/usr/lib/python2.7/site-packages/setuptools-0.9.8-py2.7.egg-info/SOURCES.txt
/usr/lib/python2.7/site-packages/setuptools-0.9.8-py2.7.egg-info/dependency_links.txt
/usr/lib/python2.7/site-packages/setuptools-0.9.8-py2.7.egg-info/entry_points.txt
/usr/lib/python2.7/site-packages/setuptools-0.9.8-py2.7.egg-info/entry_points.txt.orig
/usr/lib/python2.7/site-packages/setuptools-0.9.8-py2.7.egg-info/requires.txt
/usr/lib/python2.7/site-packages/setuptools-0.9.8-py2.7.egg-info/top_level.txt
/usr/lib/python2.7/site-packages/pyudev-0.15-py2.7.egg-info/SOURCES.txt
/usr/lib/python2.7/site-packages/pyudev-0.15-py2.7.egg-info/dependency_links.txt
/usr/lib/python2.7/site-packages/pyudev-0.15-py2.7.egg-info/top_level.txt
/usr/lib64/python2.7/idlelib/CREDITS.txt
/usr/lib64/python2.7/idlelib/TODO.txt
/usr/lib64/python2.7/idlelib/HISTORY.txt
/usr/lib64/python2.7/idlelib/extend.txt
/usr/lib64/python2.7/idlelib/help.txt
/usr/lib64/python2.7/idlelib/NEWS.txt
/usr/lib64/python2.7/idlelib/README.txt
/usr/lib64/python2.7/lib2to3/Grammar.txt
/usr/lib64/python2.7/lib2to3/PatternGrammar.txt
/usr/lib64/python2.7/site-packages/pyliblzma-0.5.3-py2.7.egg-info/SOURCES.txt
/usr/lib64/python2.7/site-packages/pyliblzma-0.5.3-py2.7.egg-info/dependency_links.txt
/usr/lib64/python2.7/site-packages/pyliblzma-0.5.3-py2.7.egg-info/top_level.txt
/usr/lib64/python2.7/site-packages/pyxattr-0.5.1-py2.7.egg-info/SOURCES.txt
/usr/lib64/python2.7/site-packages/pyxattr-0.5.1-py2.7.egg-info/dependency_links.txt
/usr/lib64/python2.7/site-packages/pyxattr-0.5.1-py2.7.egg-info/top_level.txt
/usr/share/doc/linux-firmware-20140911/LICENCE.ralink-firmware.txt
/usr/share/doc/linux-firmware-20140911/LICENCE.rtlwifi_firmware.txt
/usr/share/doc/linux-firmware-20140911/LICENCE.tda7706-firmware.txt
/usr/share/doc/glibc-2.17/rtld-debugger-interface.txt
/usr/share/doc/sed-4.2.2/sedfaq.txt.gz
/usr/share/doc/slang-2.2.4/changes.txt
/usr/share/doc/slang-2.2.4/grammar.txt
/usr/share/doc/slang-2.2.4/slang.txt
/usr/share/doc/slang-2.2.4/slangfun.txt
/usr/share/doc/freetype-2.4.11/formats.txt
/usr/share/doc/pam-1.1.8/Linux-PAM_SAG.txt
/usr/share/doc/pam-1.1.8/rfc86.0.txt
/usr/share/doc/libuser-0.60/attributes.txt
/usr/share/doc/libuser-0.60/rfc2307.txt
/usr/share/doc/util-linux-2.23.2/deprecated.txt
/usr/share/doc/util-linux-2.23.2/sfdisk.txt
/usr/share/doc/python-decorator-3.4.0/README.txt
/usr/share/doc/dhcp-common-4.2.5/References.txt
/usr/share/doc/python-configobj-4.7.2/configobj.txt
/usr/share/doc/python-configobj-4.7.2/validate.txt
/usr/share/doc/python-backports-ssl_match_hostname-3.4.0.2/LICENSE.txt
/usr/share/doc/python-backports-ssl_match_hostname-3.4.0.2/README.txt
/usr/share/doc/python-setuptools-0.9.8/CHANGES (links).txt
/usr/share/doc/python-setuptools-0.9.8/CHANGES.txt
/usr/share/doc/python-setuptools-0.9.8/CONTRIBUTORS.txt
/usr/share/doc/python-setuptools-0.9.8/DEVGUIDE.txt
/usr/share/doc/python-setuptools-0.9.8/README.txt
/usr/share/doc/python-setuptools-0.9.8/docs/build/html/_sources/easy_install.txt
/usr/share/doc/python-setuptools-0.9.8/docs/build/html/_sources/formats.txt
/usr/share/doc/python-setuptools-0.9.8/docs/build/html/_sources/index.txt
/usr/share/doc/python-setuptools-0.9.8/docs/build/html/_sources/merge-faq.txt
/usr/share/doc/python-setuptools-0.9.8/docs/build/html/_sources/merge.txt
/usr/share/doc/python-setuptools-0.9.8/docs/build/html/_sources/pkg_resources.txt
/usr/share/doc/python-setuptools-0.9.8/docs/build/html/_sources/python3.txt
/usr/share/doc/python-setuptools-0.9.8/docs/build/html/_sources/roadmap.txt
/usr/share/doc/python-setuptools-0.9.8/docs/build/html/_sources/setuptools.txt
/usr/share/doc/python-setuptools-0.9.8/docs/build/html/_sources/using.txt
/usr/share/doc/python-setuptools-0.9.8/docs/easy_install.txt
/usr/share/doc/python-setuptools-0.9.8/docs/formats.txt
/usr/share/doc/python-setuptools-0.9.8/docs/index.txt
/usr/share/doc/python-setuptools-0.9.8/docs/merge-faq.txt
/usr/share/doc/python-setuptools-0.9.8/docs/merge.txt
/usr/share/doc/python-setuptools-0.9.8/docs/pkg_resources.txt
/usr/share/doc/python-setuptools-0.9.8/docs/python3.txt
/usr/share/doc/python-setuptools-0.9.8/docs/roadmap.txt
/usr/share/doc/python-setuptools-0.9.8/docs/setuptools.txt
/usr/share/doc/python-setuptools-0.9.8/docs/using.txt
/usr/share/doc/python-setuptools-0.9.8/psfl.txt
/usr/share/doc/python-setuptools-0.9.8/zpl.txt
/usr/share/doc/alsa-lib-1.0.28/asoundrc.txt
/usr/share/doc/wpa_supplicant-2.0/eap_testing.txt
/usr/share/doc/wpa_supplicant-2.0/todo.txt
/usr/share/doc/fxload-2002_04_11/README.txt
/usr/share/doc/alsa-firmware-1.0.28/LICENSE.creative_txt
/usr/share/doc/alsa-firmware-1.0.28/aica_dreamcast_sound.txt
/usr/share/doc/gnupg2-2.0.22/examples/trustlist.txt
/usr/share/doc/kexec-tools-2.0.7/kdump-in-cluster-environment.txt
/usr/share/doc/kexec-tools-2.0.7/kexec-kdump-howto.txt
/usr/share/doc/kexec-tools-2.0.7/supported-kdump-targets.txt
/usr/share/doc/kbd-1.15.5/dvorak.txt
/usr/share/doc/man-db-2.6.3/man-db-manual.txt
/usr/share/doc/postfix-2.10.1/README-Postfix-SASL-RedHat.txt
/usr/share/doc/postfix-2.10.1/examples/qmail-local/qmail-local.txt
/usr/share/doc/tuned-2.4.1/TIPS.txt
/usr/share/doc/libsysfs-2.1.0/libsysfs.txt
/usr/share/doc/ivtv-firmware-20080701/license-end-user.txt
/usr/share/doc/ivtv-firmware-20080701/license-oemihvisv.txt
/usr/share/doc/initscripts-9.49.53/sysconfig.txt
/usr/share/doc/dos2unix-6.0.3/COPYING.txt
/usr/share/doc/dos2unix-6.0.3/ChangeLog.txt
/usr/share/doc/dos2unix-6.0.3/NEWS.txt
/usr/share/doc/dos2unix-6.0.3/README.txt
/usr/share/doc/dos2unix-6.0.3/TODO.txt
/usr/share/doc/perl-File-Temp-0.23.01/misc/results.txt
/usr/share/doc/vim-common-7.4.629/README.txt
/usr/share/doc/vim-common-7.4.629/README_ami.txt
/usr/share/doc/vim-common-7.4.629/README_amibin.txt
/usr/share/doc/vim-common-7.4.629/README_amisrc.txt
/usr/share/doc/vim-common-7.4.629/README_bindos.txt
/usr/share/doc/vim-common-7.4.629/README_dos.txt
/usr/share/doc/vim-common-7.4.629/README_extra.txt
/usr/share/doc/vim-common-7.4.629/README_mac.txt
/usr/share/doc/vim-common-7.4.629/README_ole.txt
/usr/share/doc/vim-common-7.4.629/README_os2.txt
/usr/share/doc/vim-common-7.4.629/README_os390.txt
/usr/share/doc/vim-common-7.4.629/README_src.txt
/usr/share/doc/vim-common-7.4.629/README_srcdos.txt
/usr/share/doc/vim-common-7.4.629/README_unix.txt
/usr/share/doc/vim-common-7.4.629/README_vms.txt
/usr/share/doc/vim-common-7.4.629/README_w32s.txt
/usr/share/doc/nmap-6.40/nmap.usage.txt
/usr/share/man/man1/httxt2dbm.1.gz
/usr/share/man/man5/pkcs11.txt.5.gz
/usr/share/mime/text/x-txt2tags.xml
/usr/share/kde4/apps/ksplash/Themes/CentOS7/2560x1600/description.txt
/usr/share/hwdata/iab.txt
/usr/share/hwdata/oui.txt
/usr/share/gnupg/help.be.txt
/usr/share/gnupg/help.ca.txt
/usr/share/gnupg/help.cs.txt
/usr/share/gnupg/help.da.txt
/usr/share/gnupg/help.de.txt
/usr/share/gnupg/help.el.txt
/usr/share/gnupg/help.eo.txt
/usr/share/gnupg/help.es.txt
/usr/share/gnupg/help.et.txt
/usr/share/gnupg/help.fi.txt
/usr/share/gnupg/help.fr.txt
/usr/share/gnupg/help.gl.txt
/usr/share/gnupg/help.hu.txt
/usr/share/gnupg/help.id.txt
/usr/share/gnupg/help.it.txt
/usr/share/gnupg/help.ja.txt
/usr/share/gnupg/help.nb.txt
/usr/share/gnupg/help.pl.txt
/usr/share/gnupg/help.pt.txt
/usr/share/gnupg/help.pt_BR.txt
/usr/share/gnupg/help.ro.txt
/usr/share/gnupg/help.ru.txt
/usr/share/gnupg/help.sk.txt
/usr/share/gnupg/help.sv.txt
/usr/share/gnupg/help.tr.txt
/usr/share/gnupg/help.txt
/usr/share/gnupg/help.zh_CN.txt
/usr/share/gnupg/help.zh_TW.txt
/usr/share/gnupg/qualified.txt
/usr/share/perl5/Unicode/Collate/allkeys.txt
/usr/share/perl5/Unicode/Collate/keys.txt
/usr/share/perl5/unicore/Blocks.txt
/usr/share/perl5/unicore/CaseFolding.txt
/usr/share/perl5/unicore/NamedSequences.txt
/usr/share/perl5/unicore/SpecialCasing.txt
/usr/share/vim/vim74/autoload/README.txt
/usr/share/vim/vim74/colors/README.txt
/usr/share/vim/vim74/compiler/README.txt
/usr/share/vim/vim74/doc/os_unix.txt.gz
/usr/share/vim/vim74/doc/arabic.txt.gz
/usr/share/vim/vim74/doc/os_risc.txt.gz
/usr/share/vim/vim74/doc/autocmd.txt.gz
/usr/share/vim/vim74/doc/os_vms.txt.gz
/usr/share/vim/vim74/doc/change.txt.gz
/usr/share/vim/vim74/doc/os_win32.txt.gz
/usr/share/vim/vim74/doc/cmdline.txt.gz
/usr/share/vim/vim74/doc/usr_26.txt.gz
/usr/share/vim/vim74/doc/debug.txt.gz
/usr/share/vim/vim74/doc/pi_zip.txt.gz
/usr/share/vim/vim74/doc/debugger.txt.gz
/usr/share/vim/vim74/doc/pi_vimball.txt.gz
/usr/share/vim/vim74/doc/develop.txt.gz
/usr/share/vim/vim74/doc/usr_27.txt.gz
/usr/share/vim/vim74/doc/diff.txt.gz
/usr/share/vim/vim74/doc/print.txt.gz
/usr/share/vim/vim74/doc/digraph.txt.gz
/usr/share/vim/vim74/doc/quickfix.txt.gz
/usr/share/vim/vim74/doc/editing.txt.gz
/usr/share/vim/vim74/doc/usr_28.txt.gz
/usr/share/vim/vim74/doc/eval.txt.gz
/usr/share/vim/vim74/doc/usr_29.txt.gz
/usr/share/vim/vim74/doc/farsi.txt.gz
/usr/share/vim/vim74/doc/quickref.txt.gz
/usr/share/vim/vim74/doc/filetype.txt.gz
/usr/share/vim/vim74/doc/usr_30.txt.gz
/usr/share/vim/vim74/doc/fold.txt.gz
/usr/share/vim/vim74/doc/quotes.txt.gz
/usr/share/vim/vim74/doc/ft_ada.txt.gz
/usr/share/vim/vim74/doc/recover.txt.gz
/usr/share/vim/vim74/doc/ft_sql.txt.gz
/usr/share/vim/vim74/doc/usr_31.txt.gz
/usr/share/vim/vim74/doc/gui.txt.gz
/usr/share/vim/vim74/doc/remote.txt.gz
/usr/share/vim/vim74/doc/gui_w16.txt.gz
/usr/share/vim/vim74/doc/repeat.txt.gz
/usr/share/vim/vim74/doc/gui_w32.txt.gz
/usr/share/vim/vim74/doc/rileft.txt.gz
/usr/share/vim/vim74/doc/gui_x11.txt.gz
/usr/share/vim/vim74/doc/russian.txt.gz
/usr/share/vim/vim74/doc/hangulin.txt.gz
/usr/share/vim/vim74/doc/scroll.txt.gz
/usr/share/vim/vim74/doc/hebrew.txt.gz
/usr/share/vim/vim74/doc/usr_32.txt.gz
/usr/share/vim/vim74/doc/help.txt
/usr/share/vim/vim74/doc/sign.txt.gz
/usr/share/vim/vim74/doc/helphelp.txt.gz
/usr/share/vim/vim74/doc/usr_40.txt.gz
/usr/share/vim/vim74/doc/howto.txt.gz
/usr/share/vim/vim74/doc/spell.txt.gz
/usr/share/vim/vim74/doc/if_cscop.txt.gz
/usr/share/vim/vim74/doc/sponsor.txt
/usr/share/vim/vim74/doc/if_lua.txt.gz
/usr/share/vim/vim74/doc/starting.txt.gz
/usr/share/vim/vim74/doc/if_mzsch.txt.gz
/usr/share/vim/vim74/doc/syntax.txt.gz
/usr/share/vim/vim74/doc/if_ole.txt.gz
/usr/share/vim/vim74/doc/tabpage.txt.gz
/usr/share/vim/vim74/doc/if_perl.txt.gz
/usr/share/vim/vim74/doc/usr_90.txt.gz
/usr/share/vim/vim74/doc/if_pyth.txt.gz
/usr/share/vim/vim74/doc/tagsrch.txt.gz
/usr/share/vim/vim74/doc/if_ruby.txt.gz
/usr/share/vim/vim74/doc/term.txt.gz
/usr/share/vim/vim74/doc/if_sniff.txt.gz
/usr/share/vim/vim74/doc/tips.txt.gz
/usr/share/vim/vim74/doc/if_tcl.txt.gz
/usr/share/vim/vim74/doc/todo.txt.gz
/usr/share/vim/vim74/doc/indent.txt.gz
/usr/share/vim/vim74/doc/usr_41.txt.gz
/usr/share/vim/vim74/doc/index.txt.gz
/usr/share/vim/vim74/doc/uganda.txt.gz
/usr/share/vim/vim74/doc/insert.txt.gz
/usr/share/vim/vim74/doc/usr_42.txt.gz
/usr/share/vim/vim74/doc/intro.txt.gz
/usr/share/vim/vim74/doc/usr_43.txt.gz
/usr/share/vim/vim74/doc/map.txt.gz
/usr/share/vim/vim74/doc/usr_44.txt.gz
/usr/share/vim/vim74/doc/mbyte.txt.gz
/usr/share/vim/vim74/doc/undo.txt.gz
/usr/share/vim/vim74/doc/message.txt.gz
/usr/share/vim/vim74/doc/usr_45.txt.gz
/usr/share/vim/vim74/doc/mlang.txt.gz
/usr/share/vim/vim74/doc/usr_01.txt.gz
/usr/share/vim/vim74/doc/motion.txt.gz
/usr/share/vim/vim74/doc/usr_02.txt.gz
/usr/share/vim/vim74/doc/netbeans.txt.gz
/usr/share/vim/vim74/doc/usr_03.txt.gz
/usr/share/vim/vim74/doc/options.txt.gz
/usr/share/vim/vim74/doc/usr_04.txt.gz
/usr/share/vim/vim74/doc/os_390.txt.gz
/usr/share/vim/vim74/doc/usr_05.txt.gz
/usr/share/vim/vim74/doc/os_amiga.txt.gz
/usr/share/vim/vim74/doc/usr_06.txt.gz
/usr/share/vim/vim74/doc/os_beos.txt.gz
/usr/share/vim/vim74/doc/usr_07.txt.gz
/usr/share/vim/vim74/doc/os_dos.txt.gz
/usr/share/vim/vim74/doc/usr_08.txt.gz
/usr/share/vim/vim74/doc/os_mac.txt.gz
/usr/share/vim/vim74/doc/usr_09.txt.gz
/usr/share/vim/vim74/doc/os_mint.txt.gz
/usr/share/vim/vim74/doc/usr_10.txt.gz
/usr/share/vim/vim74/doc/os_msdos.txt.gz
/usr/share/vim/vim74/doc/usr_11.txt.gz
/usr/share/vim/vim74/doc/os_os2.txt.gz
/usr/share/vim/vim74/doc/usr_12.txt.gz
/usr/share/vim/vim74/doc/os_qnx.txt.gz
/usr/share/vim/vim74/doc/pattern.txt.gz
/usr/share/vim/vim74/doc/usr_20.txt.gz
/usr/share/vim/vim74/doc/pi_getscript.txt.gz
/usr/share/vim/vim74/doc/usr_21.txt.gz
/usr/share/vim/vim74/doc/pi_gzip.txt.gz
/usr/share/vim/vim74/doc/usr_22.txt.gz
/usr/share/vim/vim74/doc/pi_netrw.txt.gz
/usr/share/vim/vim74/doc/usr_23.txt.gz
/usr/share/vim/vim74/doc/pi_paren.txt.gz
/usr/share/vim/vim74/doc/usr_24.txt.gz
/usr/share/vim/vim74/doc/pi_spec.txt.gz
/usr/share/vim/vim74/doc/usr_25.txt.gz
/usr/share/vim/vim74/doc/pi_tar.txt.gz
/usr/share/vim/vim74/doc/usr_toc.txt.gz
/usr/share/vim/vim74/doc/various.txt.gz
/usr/share/vim/vim74/doc/version4.txt.gz
/usr/share/vim/vim74/doc/version5.txt.gz
/usr/share/vim/vim74/doc/version6.txt.gz
/usr/share/vim/vim74/doc/version7.txt
/usr/share/vim/vim74/doc/vi_diff.txt.gz
/usr/share/vim/vim74/doc/vi_help.txt
/usr/share/vim/vim74/doc/visual.txt.gz
/usr/share/vim/vim74/doc/windows.txt.gz
/usr/share/vim/vim74/doc/workshop.txt.gz
/usr/share/vim/vim74/ftplugin/README.txt
/usr/share/vim/vim74/indent/README.txt
/usr/share/vim/vim74/keymap/README.txt
/usr/share/vim/vim74/lang/README.txt
/usr/share/vim/vim74/macros/README.txt
/usr/share/vim/vim74/macros/matchit.txt
/usr/share/vim/vim74/macros/maze/README.txt
/usr/share/vim/vim74/macros/urm/README.txt
/usr/share/vim/vim74/plugin/README.txt
/usr/share/vim/vim74/syntax/README.txt
/usr/share/vim/vim74/tutor/README.el.cp737.txt
/usr/share/vim/vim74/tutor/README.el.txt
/usr/share/vim/vim74/tutor/README.txt
/usr/share/nmap/nselib/data/http-folders.txt
/usr/share/nmap/nselib/data/jdwp-class/README.txt
/usr/share/nmap/nselib/data/rtsp-urls.txt
/usr/share/nmap/nselib/data/tftplist.txt
/usr/share/nmap/scripts/http-robots.txt.nse

9.查找/目录下属主是oldboy并且属组是oldboy的文件

find / -type f -user oldboy -group oldboy


[root@master ~]# find / -type f -user oldboy -group oldboy
find: ‘/proc/2589/task/2589/fdinfo/6’: No such file or directory
find: ‘/proc/2589/fdinfo/6’: No such file or directory
/home/oldboy/.bash_logout
/home/oldboy/.bash_profile
/home/oldboy/.bashrc
/home/oldboy/.bash_history



10.查找/目录下属主是oldboy但是属组不是oldboy的文件

find / -type f -user oldboy ! -group oldboy


[root@master ~]# find / -type f -user oldboy ! -group oldboy
find: ‘/proc/2692/task/2692/fdinfo/6’: No such file or directory
find: ‘/proc/2692/fdinfo/6’: No such file or directory
/var/spool/mail/oldboy


声明:本站所有文章,如无特殊说明或标注,均为本站原创发布。任何个人或组织,在未征得本站同意时,禁止复制、盗用、采集、发布本站内容到任何网站、书籍等各类媒体平台。如若本站内容侵犯了原著者的合法权益,可联系我们进行处理。