The -type
option allows you to find filesystem objects of a
certain type. The possible arguments to -type
are b
(block device), c
(character device), d
(directory),
p
(named pipe), f
(regular file), l
(symbolic link), and s
(socket). For example, to search for
symbolic links in /usr/bin
that contain the string
vim
:
$ find /usr/bin -name '*vim*' -type l
/usr/bin/rvim
/usr/bin/vimdiff
/usr/bin/gvimdiff