TTRMDIR(1)
π ttrmdir β the ToolTalk girlie's rmdir
okay so bestie, welcome to ttrmdir, a user cmd page, and honestly? she's giving cleanup crew with main character energy β¨
β¨ NAME β¨
ttrmdir β remove empty directories and inform the ToolTalk service about it π (yes, both. she does the most. she's iconic like that.)
πΈ SYNOPSIS πΈ
ttrmdir [-L] [directory] [...]
ttrmdir [-h] [-v]
π¦ DESCRIPTION π¦
So what does ttrmdir actually do? She invokes rmdir(1) to remove empty directories, and then she informs ToolTalk about her actions β so that the ToolTalk objects associated with the deleted directories can also be deleted. it's giving "clean up your room AND tell your mom you did it" π«Ά
the way she works: ttrmdir removes the ToolTalk objects before it removes the directories. and no cap β she does not check whether a directory is empty, and she does not check whether the directory-removing operation will succeed before she performs the object-removing operation. she just goes. periodt π
bestie please note: no pre-flight check. objects gone first, questions later. be so for real about that before you run her π
π OPTIONS π
the following options are available:
-hβ write a help message for invokingttrmdir, then exit. your lil "what does she do again?" button π-Lβ remove the ToolTalk objects of the directories, but do not invokermdir(1)to remove the actual directories. objects only, dirs stay. lowkey selective π-vβ write the version number ofttrmdir, then exit. she'll tell you how old she is πΈ
and fyi: the -p option to cp(1) is not supported. not her thing. don't ask β
β OPERANDS β
the following operand is supported:
directoryβ a pathname of an empty directory to be removed ποΈ
π§ STDIN π§
not used. she doesn't need your input, she's got this π
π INPUT FILES π
the input files specified as operands can be of any file type. no gatekeeping here π«Ά
π ENVIRONMENT VARIABLES π
the following environment variables affect the execution of ttrmdir:
LANGβ provide a default value for the internationalization variables that are unset or null. IfLANGis unset or null, the corresponding value from the implementation-specific default locale will be used. If any of the internationalization variables contains an invalid setting, the utility behaves as if none of the variables had been defined. (she's flexible like that β¨)LC_ALLβ if set to a non-empty string value, override the values of all the other internationalization variables. she said my rules now πLC_MESSAGESβ determine the locale that is used to affect the format and contents of diagnostic messages written to standard error and informative messages written to standard output. basically: what language her lil messages come in π¬NLSPATHβ determine the location of message catalogues for the processing ofLC_MESSAGES. where she finds the message shelf ποΈ
π₯ RESOURCES π₯
none. she travels light π
π ASYNCHRONOUS EVENTS π
the ttrmdir utility takes the standard action for all signals. no drama, standard behavior, she's unbothered π
π STDOUT π
- when the
-hoption is used,ttrmdirwrites to standard output a help message in an unspecified format. (format? a mystery. a vibe. iykyk π€«) - when the
-voption is used,ttrmdirwrites to standard output a version number in an unspecified format. (again: unspecified. she keeps it mysterious β¨)
π STDERR π
used only for diagnostic messages. that's where the "bestie something went wrong" lives π
π¦ OUTPUT FILES π¦
none. she leaves no crumbs π
πΈ EXTENDED DESCRIPTION πΈ
none. nothing extra, she said keep it cute and simple π«Ά
β EXIT STATUS β
the following exit values are returned:
0β all directories and ToolTalk objects were removed successfully. slay!! π>0β an error occurred, or the invokedrmdir(1)command exited with a non-zero value. it's giving "not her day" π
π CONSEQUENCES OF ERRORS π
default. (no special lore here, bestie π§)
ποΈ FILES ποΈ
/mountpoint/TT_DBβ the directory used as a database for the ToolTalk objects of files in the file system mounted at/mountpoint. that's her little filing cabinet, per mountpoint π
π APPLICATION USAGE π
the definition of an empty directory is one that contains, at most, directory entries for dot and dot-dot. so likeβ¦ . and .. and literally nothing else. no secret stashes π΅οΈββοΈ
π EXAMPLES π
none. (yes really, none. she's too cool for examples π)
β¨ SEE ALSO β¨
rmdir(1), ttrm(1), ttsession(1). go read those too, bestie, they're the supporting cast π«Ά
ngl the whole "removes ToolTalk objects before removing the directory and never checks anything first" thing is the one to remember. she's confident, not careful π
okay that's the whole page!! mwah π this was ttrmdir(user cmd) β user cmd, source/version and date baked right into this sign-off just for you, and she ate. periodt ππ
π¦ where this page comes from
- nixos 26.05: cde 2.5.3
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms