find - search for files in a directory hierarchy
Warning
NEVER perform a find starting at / on the central storage.
find . -type f
*
, ?
, and []
) are supported.Don't forget to enclose the pattern in quotes in order to protect it from expansion by the shell.
find . -name '*.fasta'
#find every files which was read at most 3 days ago or
find . -atime 2
#find every files created today
find . -ctime 0
#find each fasta file in my DataBio directory
#containing the string 'ABCD'
find ~/DataBio -name '*.fasta' -exec grep -H ABCD {} \;
want to know the location of a program on the PATH.
depending on the shell you use.
whichcommand type command
will show you the location of command
find . ! -type f
match all link and dir)Warning
NEVER perform a find starting at / on the central storage.