LIKWID-LUA(1)
π LIKWID-LUA(1) β the likwid-lua girlies' guide π
okay bestie, so this is likwid-lua, aka the Lua interpreter π
it's from the LIKWID-LUA(1) section of the General Commands Manual, and it's literally your girl for running Lua. let's get into it π¦
β¨ SYNOPSIS β¨
likwid-lua [ options ] [ script [ args ] ]
like. that's the whole vibe. options, then optionally a script, then optionally some args for that script. simple, iconic, no notes π
πΈ DESCRIPTION πΈ
likwid-lua is the standalone Lua interpreter, bestie!! what does that mean? it means it loads and executes Lua programs for you β either as textual source form or as precompiled binary form. (and btw, those precompiled binaries? they're output by luac, the Lua compiler. just so you know who made them π)
and the range on this thing?? likwid-lua can be used as a batch interpreter AND interactively β she contains multitudes fr fr π
here's how the whole flow goes:
- the given options are handled in order π
- and then the Lua program in file script is loaded and executed π
- the given args? they're available to script as strings in a global table named
argπ«Ά
and if you give her literally no options and no arguments? then:
-v -iis assumed when the standard input is a terminal; otherwise,-is assumed. π
yes bestie, she has defaults. she's proactive. main character energy tbh β¨
π interactive mode π
when she's in interactive mode, likwid-lua:
- prompts you π¬
- reads lines from the standard input π₯
- executes them as they are read β‘
and if the line contains an expression or list of expressions, then the line is evaluated and the results are printed. if a line does not contain a complete statement, then a secondary prompt is displayed and lines are read until a complete statement is formed or a syntax error is found π
π§ the very start (yes, before EVERYTHING) π§
at the very start, before even handling the command line, likwid-lua checks the contents of the environment variables LUA_INIT_5_3 or LUA_INIT, in that order. and then:
- if the contents is of the form
'@filename', then filename is executed π - otherwise, the string is assumed to be a Lua statement and is executed β‘
she's checking her env vars before she even looks at you. queen behavior π
π OPTIONS π
one bullet per option bestie, and yes we're doing all of them, we don't skip π
-e statβ execute statement stat. just. run it. right there. π₯-iβ enter interactive mode after executing script. so she runs your thing and then sticks around to chat π«Ά-l nameβ execute the equivalent ofname=require('name')before executing script. preloading, but make it cute β¨-vβ show version information. say hi to the version π-Eβ ignore environment variables. (yes, even theLUA_INIT_5_3andLUA_INITones from up there. she's choosing peace πΈ)--β stop handling options. that's it, that's the whole job π-β stop handling options and execute the standard input as a file. stdin but make it a file π
π¦ SEE ALSO π¦
the documentation at lua.org, especially section 7 of the reference manual. go read it, it's giving educational π
π DIAGNOSTICS π
error messages should be self explanatory. like, she'll tell you. she's not gonna make you guess. communication queen π«Ά
π AUTHORS π
R. Ierusalimschy, L. H. de Figueiredo, W. Celes</purl> β the literal legends who made this happen π
okay and for the cute sign-off: this little page lives in the General Commands Manual under LIKWID-LUA(1), and its footer date is $Date: 2014/12/10 15:55:45 $ π so yeah, that's the timestamp, that's the lore, go run some Lua bestie π¦β¨π
π¦ where this page comes from
- debian bookworm: likwid 5.2.2+dfsg1-1 Β· GPL-3.0-or-later
- debian trixie: likwid 5.4.1+dfsg-1 Β· GPL-3.0-or-later
- nixos 26.05: likwid 5.5.1
- nixpkgs unstable: likwid 5.5.2
- ubuntu jammy: likwid 5.1.0+dfsg1-1 Β· GPL-3.0-or-later
- ubuntu noble: likwid 5.2.2+dfsg1-2 Β· GPL-3.0-or-later
- ubuntu questing: likwid 5.4.1+dfsg-1
- ubuntu resolute: likwid 5.4.1+dfsg-1build1 Β· GPL-3.0-or-later
- ubuntu stonking: likwid 5.5.1+dfsg-2 Β· GPL-3.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms