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

find第二天的更多相关文章

  1. 读书笔记:JavaScript DOM 编程艺术(第二版)

    读完还是能学到很多的基础知识,这里记录下,方便回顾与及时查阅. 内容也有自己的一些补充. JavaScript DOM 编程艺术(第二版) 1.JavaScript简史 JavaScript由Nets ...

  2. [ 高并发]Java高并发编程系列第二篇--线程同步

    高并发,听起来高大上的一个词汇,在身处于互联网潮的社会大趋势下,高并发赋予了更多的传奇色彩.首先,我们可以看到很多招聘中,会提到有高并发项目者优先.高并发,意味着,你的前雇主,有很大的业务层面的需求, ...

  3. ASP.NET MVC with Entity Framework and CSS一书翻译系列文章之第二章:利用模型类创建视图、控制器和数据库

    在这一章中,我们将直接进入项目,并且为产品和分类添加一些基本的模型类.我们将在Entity Framework的代码优先模式下,利用这些模型类创建一个数据库.我们还将学习如何在代码中创建数据库上下文类 ...

  4. 从0开始搭建SQL Server AlwaysOn 第二篇(配置故障转移集群)

    从0开始搭建SQL Server AlwaysOn 第二篇(配置故障转移集群) 第一篇http://www.cnblogs.com/lyhabc/p/4678330.html第二篇http://www ...

  5. Entity Framework教程(第二版)

    源起 很多年前刚毕业那阵写过一篇关于Entity Framework的文章,没发首页却得到100+的推荐.可能是当时Entity Framework刚刚发布介绍EF的文章比较少.一晃这么多年过去了,E ...

  6. [C#] 软硬结合第二篇——酷我音乐盒的逆天玩法

    1.灵感来源: LZ是纯宅男,一天从早上8:00起一直要呆在电脑旁到晚上12:00左右吧~平时也没人来闲聊几句,刷空间暑假也没啥动态,听音乐吧...~有些确实不好听,于是就不得不打断手头的工作去点击下 ...

  7. 《Django By Example》第二章 中文 翻译 (个人学习,渣翻)

    书籍出处:https://www.packtpub.com/web-development/django-example 原作者:Antonio Melé (译者注:翻译完第一章后,发现翻译第二章的速 ...

  8. 菜鸟Python学习笔记第二天:关于Python黑客。

    2016年1月5日 星期四 天气:还好 一直不知道自己为什么要去学Python,其实Python能做到的Java都可以做到,Python有的有点Java也有,而且Java还是必修课,可是就是不愿意去学 ...

  9. (转)从0开始搭建SQL Server AlwaysOn 第二篇(配置故障转移集群)

    原文地址:  http://www.cnblogs.com/lyhabc/p/4682028.html 这一篇是从0开始搭建SQL Server AlwaysOn 的第二篇,主要讲述如何搭建故障转移集 ...

  10. Linux基础介绍【第二篇】

    远程连接Linux的原理 SHH远程连接介绍 当前,在几乎所有的互联网企业环境中,最常用的Linux提供远程连接服务的工具就是SSH软件,SSH分为SSH客户端和SSH服务端两部分.其中,SSH服务端 ...

随机推荐

  1. 如何修改11g RAC集群名称

    背景:有一套11.2.0.4 RAC集群的环境,为了测试DG,直接复制了一套一模一样的环境,修改过IP之后,依然有问题,无法同时启动. 初步判断是因为在同一子网存在两个同名的集群(都是jystdrac ...

  2. IntPtr 来把指针转换为 Int

    由于想得到指针的值,这个时候,不能把指针强制转换为 integer 因为 integer 只适合32位的系统,64位的系统下,需要用 int64, 通过这个函数来转换,就可以屏蔽掉系统是32位 还是 ...

  3. MySQL 8.0.25从节点自动故障转移测试

    从MySQL 8.0.23开始,复制结构中,增加了从节点自动故障转移功能.测试一下起功能: 用dbdeployer快速安装测试环境,我这边安装的是:dbdeployer1.8.5    -- 安装脚本 ...

  4. 新零售SaaS架构:什么是订单履约系统?

    什么是订单履约系统? 订单履约系统用来管理从接到销售订单,到把货品送到客户手中的整个业务过程.它是上游交易(如销售和客户下单环节)和下游仓储配送(如库存管理.物流)之间的桥梁,确保信息流的顺畅和操作的 ...

  5. MySQL的随机排序(random orderby)

    MySQL的随机排序(random orderby)是指在查询数据库时,将结果集以随机的方式排列.这种排序方式可以用于有趣的应用场景,例如实现随机音乐播放.广告推荐等. 要实现MySQL的随机排序,可 ...

  6. 产品分享:Qt数学函数公式学科工具,当前版本v1.0.0

    ​若该文为原创文章,转载请注明原文出处本文章博客地址:https://hpzwl.blog.csdn.net/article/details/121194536红胖子(红模仿)的博文大全:开发技术集合 ...

  7. mongodb(2022)

    了解 文档数据库MongoDB用于记录文档结构的数据,如JSON.XML结构的数据.一条文档就是一条记录(含数据和数据结构),一条记录里可以包含若干个键值对.键值对由键和值两部分组成,键又叫做字段.键 ...

  8. vscode添加gitbash终端方法

    1.打开vscode 2.点击文件,ctrl+, 3.搜索shell windows { ... // 添加如下代码 "terminal.integrated.profiles.window ...

  9. 数仓的等待视图中,为什么会有Hashjoin-nestloop

    本文分享自华为云社区<GaussDB(DWS)等待视图之Hashjoin-nestloop>,作者:Arrow0lf. 1. 业务场景 众所周知,GaussDB(DWS)中有3种常见的jo ...

  10. 如何在矩池云复现开源对话语言模型 ChatGLM

    ChatGLM-6B 是一个开源的.支持中英双语的对话语言模型,基于 General Language Model (GLM) 架构,具有 62 亿参数.结合模型量化技术,用户可以在消费级的显卡上进行 ...