IF Commons GitHub

tail

verbread

Write the last lines (or bytes) of a file.

Program anyfs-writer. Origin anyfs.

Governance: the action

What the verb is and may do, as governance says it. Each annotation is expressed by the surfaces or says why it is not.

PropertyValue
kindreport
effectread
idempotenttrue
audienceboth
tierreader
dryRunfalse
checkfalse
reachChannelslocal, ssh, mcp, rest
reachReadOnlytrue
reachNeedsTtyfalse
reachRunsAscaller
reachConfirmationnone

Operands

OperandMeaning
LOCATIONA file of a store.

Options

OptionMeaningProperties
--linesThe last N lines (10 by default).type=value, short=n, required=false, standard=false, humanOnly=false, valueName=N, default=10
--bytesThe last N bytes instead of lines.type=value, short=c, required=false, standard=false, humanOnly=false, valueName=N
--explainSay how the store would carry the operation out (native, emulated or refused), and do nothing else.type=flag, required=false, standard=false, humanOnly=false, negatable=false, default=false
--strictStop where the store carries an operation out by a means that can lose or change what you meant.type=flag, required=false, standard=false, humanOnly=false, negatable=false, default=false
--jsonWrite one JSON document and nothing else for a person.type=flag, required=false, standard=true, humanOnly=false, negatable=false, default=false
--sarifWrite the findings as SARIF 2.1.0 and nothing else.type=flag, required=false, standard=true, humanOnly=false, negatable=false, default=false
--quietShow only how it ended.type=flag, short=q, required=false, standard=true, humanOnly=false, negatable=false, default=false
--verboseShow every step as it happens.type=flag, short=v, required=false, standard=true, humanOnly=false, negatable=false, default=false
--colorUse colour where the terminal shows it (--no-color turns it off).type=flag, required=false, standard=true, humanOnly=false, negatable=true, default=true
--non-interactiveNever ask a question: where one is needed, fail and say so.type=flag, required=false, standard=true, humanOnly=false, negatable=false, default=false
--onRun it on these targets instead of here: ids joined by commas, `class:<class>` or `all`.type=value, required=false, standard=true, humanOnly=false, valueName=VALUE

Examples

anyfs tail -n 5 fleet:/machines/alpha.json  # The last five lines.

Physical: what it is drawn as

anyfs tail

cli-command. Write the last lines (or bytes) of a file.

PropertyValue
usageanyfs tail
wordstail
tierreader

anyfs_tail

mcp-tool. Write the last lines (or bytes) of a file. (report, effect read, safe to repeat.)

PropertyValue
titleanyfs tail
toolNameanyfs_tail
readOnlyHinttrue
destructiveHintfalse
idempotentHinttrue
inputslines, bytes, explain, strict, LOCATION
requiredLOCATION
tierreader

GET /v1/tail

rest-route. Write the last lines (or bytes) of a file.

PropertyValue
methodGET
path/v1/tail
operationIdanyfs_tail
effectread
tierreader
idempotenttrue

Titles, headings, exports, tables, columns and requirements. Esc closes.