DEV_MKDB(8)
π dev_mkdb β create /dev database π
okay so real talk, this is dev_mkdb(8) from the LOCAL manual, and it is literally the little icon that builds the /dev database. one job, does it, slays. β¨
πΈ SYNOPSIS πΈ
dev_mkdb
no flags, no arguments, no drama. she takes zero notes and zero options. π
π DESCRIPTION π
bestie, here's the whole vibe: the dev_mkdb command creates a db(3) hash access method database sitting pretty at /var/run/dev.db. and what goes in it? the names of every single character and block special file in the /dev directory, ngl. π¦
the key situation β and this is the part you gotta remember β uses the file type plus the st_rdev field. that's the whole key. no cap.
so the keys are a structure containing a mode_t followed by a dev_t, with any padding zero'd out. the first one (the mode_t) is the type of the file, which is st_mode & S_IFMT. the second one (the dev_t) is the st_rdev field. periodt. π
π FILES π
/devβ the device directory. this is where all the special files live, iykyk. π/var/run/dev.dbβ the database file. this is the glow-up she produces. πΎβ¨
π¦ SEE ALSO π¦
ps(1), stat(2), db(3), devname(3), kvm_nlist(3), ttyname(3), kvm_mkdb(8)
like, go read those too. the whole friend group is iconic. π«Ά
π HISTORY π
the dev_mkdb command appeared in 4.4BSD. vintage. main character energy since day one. π
ok that's the whole page, no filler, fr fr. every detail stayed, only the vibe got cuter. ππ
and finally, the cute lil sign-off from the footer: this one's from Debian, dated June 6, 1993, and it lives at DEV_MKDB(8) β mwah, bye bestie! π§ββοΈβπ
π¦ where this page comes from
- nixpkgs unstable: diskdev_cmds 757
- Copyright (c) 1990, 1993 The Regents of the University of California. All rights reserved
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms