How do I save command output to a file?
Use the core > <file> operator: append is the default, while -r replaces the destination.
Append by default
save.log in the current lil-terminal directory. After the result, the terminal prints the resolved destination path. Repeating the command appends another result instead of deleting the earlier data.
Replace or state append explicitly
Use -r after the destination to replace it:
What can be redirected
Only redirectable textual results are written. Interactive editors, secret prompts, downloads and browser-control events are not converted into files. Commands that already use > inside their own grammar keep that syntax; redirection is recognized as the final output operator.
Reuse the last result
Why values use a colon
In the current grammar, > is reserved for core output redirection. Commands that accept a value use :: command ... > file mean the same thing everywhere. An older installed module is detected and produces a migration message instead of silently redirecting the wrong text.
Examples
dns google.com > save.logdns gmail.com > save.log -renv > "logs/env current.log" -ahistory -o > history.loghistory -o > history.log -r