find用法



[root@test-mini-02 test]# find / -name passwd
/etc/passwd
/etc/pam.d/passwd
/usr/share/doc/nss_ldap-253/pam.d/passwd
/usr/bin/passwd
[root@test-mini-02 test]# find / -type d -name test
/usr/share/systemtap/tapset/test
/usr/lib64/python2.4/bsddb/test
/usr/lib64/python2.4/email/test
/test
/var/lib/mysql/test
[root@test-mini-02 test]# find / -type c >> character.txt
[root@test-mini-02 test]# less character.txt 
[root@test-mini-02 test]# head character.txt 
/dev/vcs4
/dev/vcsa4
/dev/vcsa3
/dev/vcs3
/dev/vcsa2
/dev/vcs2
/dev/vcsa5
/dev/vcsa6
/dev/vcs6
/dev/vcs5


你可能感兴趣的:(linux,find)