Linux Find
posted on 04 May 2018 under category 人生经验
find -name "query" # 查找query名的文件
find -iname "query" # ignore the case of query
find -type type_descriptor query
find / -type c # find all c type from /
find / -type d -name dir # find directory named "dir" from /
find / -type d -name dir 2 > /dev/null # eliminate all the error messages you'll likely (read, always) get when not doing this as the root user
type_descriptor:
f: regular file
d: directory
l: symbolic link
c: character devices
b: block devices