find: Type
1
1 2.5 Type
1 ========
1
1 -- Test: -type c
1 True if the file is of type C:
1
1 'b'
1 block (buffered) special
1 'c'
1 character (unbuffered) special
1 'd'
1 directory
1 'p'
1 named pipe (FIFO)
1 'f'
1 regular file
1 'l'
1 symbolic link; if '-L' is in effect, this is true only for
1 broken symbolic links. If you want to search for symbolic
1 links when '-L' is in effect, use '-xtype' instead of '-type'.
1 's'
1 socket
1 'D'
1 door (Solaris)
1
1 -- Test: -xtype c
1 This test behaves the same as '-type' unless the file is a symbolic
1 link. If the file is a symbolic link, the result is as follows (in
1 the table below, 'X' should be understood to represent any letter
1 except 'l'):
1
1 ''-P -xtype l''
1 True if the symbolic link is broken
1 ''-P -xtype X''
1 True if the (ultimate) target file is of type 'X'.
1 ''-L -xtype l''
1 Always true
1 ''-L -xtype X''
1 False unless the symbolic link is broken
1
1 In other words, for symbolic links, '-xtype' checks the type of the
1 file that '-type' does not check.
1
1 The '-H' option also affects the behaviour of '-xtype'. When '-H'
1 is in effect, '-xtype' behaves as if '-L' had been specified when
1 examining files listed on the command line, and as if '-P' had been
1 specified otherwise. If neither '-H' nor '-L' was specified,
1 '-xtype' behaves as if '-P' had been specified.
1
1 ⇒Symbolic Links, for more information on '-follow' and '-L'.
1