K2HLINETOOL(1)

πŸ“¦ version 1.0.101, in epel 10, epel 9, fedora 43, fedora 44

πŸ’– K2HLINETOOL β€” bestie's interactive command line tool for K2HASH πŸ’–

okay so this is the manual for k2hlinetool, from the NoSQL(KVS) Library era of the K2HASH world. come thru, February 2014. πŸŽ€


✨ NAME ✨

K2HLINETOOL β€” interactive command line tool for K2HASH, fr fr


πŸ¦‹ SYNOPSIS πŸ¦‹

k2hlinetool [OPTIONS] [ -f filename | -t filename | -m | -h ]

🌸 DESCRIPTION 🌸

so k2hlinetool is, like, an interactive tool β€” and no cap, it can test almost every interface in the K2HASH library. you can create, modify, and load transactions (archives) of the k2hash file straight from this thing. it's giving full control, honestly. πŸ’…

it's got a CUI interface (yes bestie, terminal girlies rise), plus command history and all that good stuff. and if you ever forget how to use it? just type -h and it'll show you the usage. main character energy tbh. πŸ‘‘


πŸ’… OPTIONS πŸ’…

  • -h β€” display help. the little "hi bestie here's how this works" moment. 🫢
  • -f [K2HASH FILE] β€” specify a permanent k2hash file.
  • -t [K2HASH FILE] β€” specify a temporary</> k2hash file.
  • -m β€” k2hash data lives on only memory. no disk, just vibes. ✨
  • -mask [BIT COUNT] β€” specify the bit mask count for k2hash data.
  • -cmask [BIT COUNT] β€” specify the collision bit mask count for k2hash data.
  • -elementcnt [ELEMENT COUNT] β€” specify the element count for each k2hash table.
  • -pagesize [BYTE] β€” specify the pagesize for each k2hash internal data.
  • -ext [LIBRARY PATH] β€” specify an extension library for the hash function.
  • -fullmap β€” map all of the k2hash file onto memory when a k2hash file is specified. the whole thing. no crumbs. πŸ“
  • -ro β€” work in read only mode when it's a permanent k2hash file.
  • -init β€” initialize the k2hash permanent file. fresh start, clean slate, slay. 🧚
  • -lap β€” print the lap time after finishing a command. we love a lil timing moment. ⏱️
  • -his [COUNT] β€” set the history count of commands.
  • -libversion β€” display the k2hash library version.
  • -g [ERR | WAN | INFO] β€” set the debugging level. k2hlinetool will display debugging messages about itself. iykyk. πŸ‘€
  • -glog [FILE PATH] β€” set the output file for debugging messages (default is stderr).
  • -capi β€” use the C API for the k2hash library. this option is testing for the library, so like… handle with care bestie. πŸ’€
  • -run [FILE PATH] β€” run a command (history) file at starting. automatic, no manual typing, obsessed. πŸ”₯

🌈 ENVIRONMENT 🌈

  • K2HDBGMODE β€” this environment variable sets the debugging message level, exactly the same as the -g option. the value gets set as SILENT, ERR, WAN, or INFO. and here's the fun part: when k2hlinetool catches a SIGUSR1 signal, the debugging message level gets bumpup'd. it cycles through in this order: SILENT, ERR, WAN, INFO, SILENT… and around and around we go. 🎠
  • 2HDBGFILE β€” this environment variable sets the file that debugging messages go to, and it works just like the -glog option. (yes, that's spelled 2HDBGFILE right there in the original, we don't make the rules, we just report them πŸ’œ)

πŸ’œ SEE ALSO πŸ’œ

k2hash(1), k2hreplace(1), k2hcompress(1), k2htouch(1), k2hedit(1)

the whole friend group, honestly. go say hi. 🫢


πŸ’€ BUGS πŸ’€

Please report owner and committers.

like… just tell the owner and the committers, okay?? that's the whole instruction. 😭

πŸ‘‘ AUTHOR πŸ‘‘

k2hash has been written by Takeshi Nakatani <ggtakec@gmail.com>.


πŸŽ€ the sign-off πŸŽ€

and that's the tea, bestie β€” this page is from the K2HASH source, dated February 2014, and it's the K2HLINETOOL(1) manual. periodt. πŸ’–βœ¨πŸŒΈπŸ¦‹

πŸ“¦ where this page comes from