Bash find file by name4/3/2023 ![]() ![]() The opposite can be specified using -nofollow. L, -follow When checking whether files exist (if the -existing option is specified), follow trailing symbolic links. e, -existing Print only entries that refer to files existing at the time locate is run. ![]() A database file name - refers to the standard input. Option is specified, the resulting path is a concatenation of the separate paths.Īn empty database file name is replaced by the default database. DBPATH is a :-separated list of database file names. d, -database DBPATH Replace the default database with DBPATH. c, -count Instead of writing file names on standard output, write the number of matching entries only. Options -b, -basename Match only the base name against the specified patterns. If no match was found or a fatal error was encountered,Įrrors encountered while reading a database are not fatal, search continues in other specified databases, if any. One of the -limit 0, -help, -statistics or -version options. locate can never report files created after the most recentĮxit Status locate exits with status 0 if any match was found or if locate was invoked with If any PATTERN contains no globbing characters, locateīehaves as if the pattern were * PATTERN *.īy default, locate does not check whether files found in database still exist. If -regex is not specified, PATTERNs can contain globbing characters. Names matching at least one of the PATTERNs to standard output, one per line. Locate reads one or more databases prepared by updatedb(8) and writes file ![]()
0 Comments
Leave a Reply.AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |