mdfind(1)
π mdfind β the girlies' guide to GWMetadata π
okay so real quick, this page is from the General Commands Manual section, and it's all about mdfind β a lil tool that goes digging through GWMetadata's database to find files that match whatever query you throw at it. she's a search queen, no cap. π
β¨ NAME β¨
mdfind β search files matching a query in GWMetadata's database π¦
π SYNOPSIS π
mdfind [options] query
like. give her some options, give her a query, she does the rest. periodt. β¨
πΈ DESCRIPTION πΈ
okay bestie, listen β this manual page is just a lil brief rundown of the mdfind command. not the whole saga, just the highlights. π
mdfind is a tool that searches for files matching a given query. it's part of GWMetadata, which is a desktop search and indexing system for GNUstep. so likeβ¦ it's not just a search tool, it's a whole ecosystem's search tool. main character energy fr fr. π
π OPTIONS π
-onlyin'directory' β limits the search to βdirectoryβ. as in, stay in your lane, babe. π§-sβ reports also the score for each found path. like a little grade for every result. slay. π-cβ reports only the count of each found path. no list, no names, just the number. iconic minimalism. π’-a[attribute] β if βattributeβ is supplied, prints the attribute description; otherwise prints the attributes list. so-aalone = the whole menu,-a+ a name = the tea on that one attribute. π-hβ prints a help message and exits. your get-out-of-jail card, bestie. π
π the query format, bestie π
the query has the format: attribute operator value β where βattributeβ is one of the attributes used by the mdextractor(1) tool when indexing (type mdfind -a for the attributes list, i'm literally telling you, just do it), and βoperatorβ is one of the following:
==β equal β!=β not equal π«<β less than (only for numeric values and dates) π<=β less than or equal (only for numeric values and dates) π>β greater than (only for numeric values and dates) π>=β greather than or equal (only for numeric values and dates) π
ok so yes, the last one says βgreatherβ and no, i'm not fixing it. that's what the manpage says, and i don't make the rules. π
π value comparison modifiers (for string values) π
- Appending the
'c'character to the search value ("value"c) makes the query case insensitive. so she stops caring about capitalization. we love a chill queen. π - The
'*'wildcard can be used to match substrings anywhere in the search value. go wild, it's flexible like that. π¦
π§ combining queries π§
Queries can be combined using:
'&&'for AND'||'for OR- parentheses to define nesting criteria
yes bestie, you can build a whole little logic tree. you're basically a compiler now. π
β SEE ALSO β
π«Ά AUTHORS π«Ά
mdfind and GWMetadata were written by Enrico Sersale. absolute legend, we stan. π
This manual page was added by Yavor Doganov <yavor@gnu.org> for the Debian distribution because the original program does not have one. so basically a whole rescue mission. π
π COPYRIGHT π
Copyright Β© 2014 Free Software Foundation, Inc.
Copying and distribution of this file, with or without modification, are permitted in any medium without royalty provided the copyright notice and this notice are preserved. so likeβ¦ share it, remix it, just keep the receipts. periodt. β¨
and that's the whole page, bestie!! π this one came out of the General Commands Manual, dated June 19, 2014, and it's literally the mdfind(1) page. go search something cute. i'm obsessed. πβ¨ππ¦πΈπ
π«Ά
π¦ where this page comes from
- debian bookworm: mdfinder.app 1.0.0-1 Β· GPL-2.0-or-later
- debian trixie: mdfinder.app 1.1.0-2 Β· GPL-2.0-or-later
- ubuntu jammy: mdfinder.app 1.0.0-1build1 Β· GPL-2.0-or-later
- ubuntu noble: mdfinder.app 1.0.0-1build2 Β· GPL-2.0-or-later
- ubuntu questing: mdfinder.app 1.1.0-2
- ubuntu resolute: mdfinder.app 1.1.0-2build1 Β· GPL-2.0-or-later
- ubuntu stonking: mdfinder.app 1.1.0-2build1 Β· GPL-2.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms