Man page - git-annex-examinekey(1)
Packages contas this manual
- git-annex-dropunused(1)
- git-annex-log(1)
- git-annex-groupwanted(1)
- git-annex-findcomputed(1)
- git-annex-enable-tor(1)
- git-annex-addcomputed(1)
- git-annex-info(1)
- git-annex-recompute(1)
- git-annex-lock(1)
- git-annex-fuzztest(1)
- git-annex-checkpresentkey(1)
- git-annex-fromkey(1)
- git-annex-filter-branch(1)
- git-annex-unlock(1)
- git-annex-find(1)
- git-annex-reregisterurl(1)
- git-annex-required(1)
- git-annex-readpresentkey(1)
- git-annex-initcluster(1)
- git-annex-vicfg(1)
- git-annex-mincopies(1)
- git-annex-fix(1)
- git-annex-initremote(1)
- git-annex-preferred-content(1)
- git-annex-mirror(1)
- git-annex-satisfy(1)
- git-annex-pull(1)
- git-annex-move(1)
- git-annex-matching-expression(1)
- git-annex-remotedaemon(1)
- git-annex-findkeys(1)
- git-annex-updatecluster(1)
- git-annex-restage(1)
- git-annex-registerurl(1)
- git-annex-unused(1)
- git-annex-proxy(1)
- git-annex-transferkeys(1)
- git-annex-matchexpression(1)
- git-annex-expire(1)
- git-annex-pre-commit(1)
- git-annex-whereis(1)
- git-annex-reinit(1)
- git-annex-merge(1)
- git-annex-metadata(1)
- git-annex-unannex(1)
- git-annex-version(1)
- git-annex-wanted(1)
- git-annex-vfilter(1)
- git-annex-list(1)
- git-annex-diffdriver(1)
- git-annex-forget(1)
- git-annex-lookupkey(1)
- git-annex-p2phttp(1)
- git-annex-config(1)
- git-annex-view(1)
- git-annex-edit(1)
- git-annex-filter-process(1)
- git-annex-repair(1)
- git-remote-tor-annex(1)
- git-annex-map(1)
- git-annex-status(1)
- git-annex-watch(1)
- git-annex-schedule(1)
- git-annex-adjust(1)
- git-annex-unregisterurl(1)
- git-remote-annex(1)
- git-annex-p2p(1)
- git-annex-reinject(1)
- git-annex-dead(1)
- git-annex-direct(1)
- git-annex-semitrust(1)
- git-annex-assist(1)
- git-annex-setkey(1)
- git-annex-push(1)
- git-annex-setpresentkey(1)
- git-annex-testremote(1)
- git-annex(1)
- git-annex-assistant(1)
- git-annex-copy(1)
- git-annex-importfeed(1)
- git-annex-vpop(1)
- git-annex-addurl(1)
- git-annex-dropkey(1)
- git-annex-updateproxy(1)
- git-annex-upgrade(1)
- git-annex-shell(1)
- git-annex-backends(1)
- git-annex-sim(1)
- git-annex-get(1)
- git-annex-benchmark(1)
- git-annex-export(1)
- git-annex-post-receive(1)
- git-annex-resolvemerge(1)
- git-annex-trust(1)
- git-annex-fsck(1)
- git-annex-transferrer(1)
- git-annex-migrate(1)
- git-annex-maxsize(1)
- git-annex-drop(1)
- git-annex-rekey(1)
- git-annex-matching-options(1)
- git-annex-calckey(1)
- git-annex-webapp(1)
- git-annex-examinekey(1)
- git-annex-inprogress(1)
- git-annex-findref(1)
- git-annex-undo(1)
- git-annex-indirect(1)
- git-annex-untrust(1)
- git-annex-extendcluster(1)
- git-annex-vcycle(1)
- git-annex-common-options(1)
- git-annex-contentlocation(1)
- git-annex-addunused(1)
- git-annex-smudge(1)
- git-annex-add(1)
- git-annex-enableremote(1)
- git-annex-uninit(1)
- git-annex-renameremote(1)
- git-annex-multicast(1)
- git-annex-import(1)
- git-annex-rmurl(1)
- git-annex-ungroup(1)
- git-annex-group(1)
- git-annex-numcopies(1)
- git-annex-sync(1)
- git-annex-describe(1)
- git-annex-configremote(1)
- git-annex-test(1)
- git-annex-transferkey(1)
- git-annex-init(1)
- git-annex-whereused(1)
- git-annex-vadd(1)
- git-annex-oldkeys(1)
- git-annex-dropunused(1)
- git-annex-log(1)
- git-annex-groupwanted(1)
- git-annex-findcomputed(1)
- git-annex-enable-tor(1)
- git-annex-addcomputed(1)
- git-annex-info(1)
- git-annex-recompute(1)
- git-annex-lock(1)
- git-annex-fuzztest(1)
- git-annex-checkpresentkey(1)
- git-annex-fromkey(1)
- git-annex-filter-branch(1)
- git-annex-unlock(1)
- git-annex-find(1)
- git-annex-reregisterurl(1)
- git-annex-required(1)
- git-annex-readpresentkey(1)
- git-annex-initcluster(1)
- git-annex-vicfg(1)
- git-annex-mincopies(1)
- git-annex-fix(1)
- git-annex-initremote(1)
- git-annex-preferred-content(1)
- git-annex-mirror(1)
- git-annex-satisfy(1)
- git-annex-pull(1)
- git-annex-move(1)
- git-annex-matching-expression(1)
- git-annex-remotedaemon(1)
- git-annex-findkeys(1)
- git-annex-updatecluster(1)
- git-annex-restage(1)
- git-annex-registerurl(1)
- git-remote-p2p-annex(1)
- git-annex-unused(1)
- git-annex-proxy(1)
- git-annex-transferkeys(1)
- git-annex-matchexpression(1)
- git-annex-expire(1)
- git-annex-pre-commit(1)
- git-annex-whereis(1)
- git-annex-reinit(1)
- git-annex-merge(1)
- git-annex-metadata(1)
- git-annex-unannex(1)
- git-annex-version(1)
- git-annex-wanted(1)
- git-annex-vfilter(1)
- git-annex-list(1)
- git-annex-diffdriver(1)
- git-annex-forget(1)
- git-annex-lookupkey(1)
- git-annex-p2phttp(1)
- git-annex-config(1)
- git-annex-view(1)
- git-annex-edit(1)
- git-annex-filter-process(1)
- git-annex-repair(1)
- git-remote-tor-annex(1)
- git-annex-map(1)
- git-annex-status(1)
- git-annex-watch(1)
- git-annex-schedule(1)
- git-annex-adjust(1)
- git-annex-unregisterurl(1)
- git-remote-annex(1)
- git-annex-p2p(1)
- git-annex-reinject(1)
- git-annex-dead(1)
- git-annex-direct(1)
- git-annex-semitrust(1)
- git-annex-assist(1)
- git-annex-setkey(1)
- git-annex-push(1)
- git-annex-setpresentkey(1)
- git-annex-testremote(1)
- git-annex(1)
- git-annex-assistant(1)
- git-annex-copy(1)
- git-annex-importfeed(1)
- git-annex-vpop(1)
- git-annex-addurl(1)
- git-annex-dropkey(1)
- git-annex-updateproxy(1)
- git-annex-upgrade(1)
- git-annex-shell(1)
- git-annex-backends(1)
- git-annex-sim(1)
- git-annex-get(1)
- git-annex-benchmark(1)
- git-annex-export(1)
- git-annex-post-receive(1)
- git-annex-resolvemerge(1)
- git-annex-trust(1)
- git-annex-fsck(1)
- git-annex-transferrer(1)
- git-annex-migrate(1)
- git-annex-maxsize(1)
- git-annex-drop(1)
- git-annex-rekey(1)
- git-annex-matching-options(1)
- git-annex-calckey(1)
- git-annex-webapp(1)
- git-annex-examinekey(1)
- git-annex-inprogress(1)
- git-annex-findref(1)
- git-annex-undo(1)
- git-annex-indirect(1)
- git-annex-untrust(1)
- git-annex-extendcluster(1)
- git-annex-vcycle(1)
- git-annex-common-options(1)
- git-annex-contentlocation(1)
- git-annex-addunused(1)
- git-annex-smudge(1)
- git-annex-add(1)
- git-annex-enableremote(1)
- git-annex-uninit(1)
- git-annex-renameremote(1)
- git-annex-multicast(1)
- git-annex-import(1)
- git-annex-rmurl(1)
- git-annex-ungroup(1)
- git-annex-group(1)
- git-annex-numcopies(1)
- git-annex-sync(1)
- git-annex-describe(1)
- git-annex-configremote(1)
- git-annex-test(1)
- git-annex-transferkey(1)
- git-annex-init(1)
- git-annex-whereused(1)
- git-annex-vadd(1)
- git-annex-oldkeys(1)
Package: git-annex
apt-get install git-annex
apt-get install git-annex
Manuals in package:
Documentations in package:
Package: git-annex-standalone
apt-get install git-annex-standalone
apt-get install git-annex-standalone
Manuals in package:
Documentations in package:
Manual
| git-annex-examinekey(1) | General Commands Manual | git-annex-examinekey(1) |
NAME
git-annex-examinekey - prints information from a key
SYNOPSIS
git annex examinekey [key ...]
DESCRIPTION
This plumbing-level command is given a key, and prints information that can be determined purely by looking at the key.
OPTIONS
- --format=value
- Use custom output formatting.
- The value is a format string, in which '${var}' is expanded to the value of a variable. To right-justify a variable with whitespace, use '${var;width}' ; to left-justify a variable, use '${var;-width}'; to escape unusual characters (including control characters) in a variable, use '${escaped_var}'
- To generate a path from the top of the repository to the git-annex object for a key, use ${objectpath}. To generate the value of a git-annex pointer file for a key, use ${objectpointer}.
- These variables are also available for use in formats: ${key}, ${backend}, ${bytesize}, ${humansize}, ${keyname}, ${hashdirlower}, ${hashdirmixed}, ${mtime} (for the mtime field of a WORM key), ${file} (when a filename is provided to examinekey).
- Also, '\n' is a newline, '\000' is a NULL, etc.
- The default output format is the same as --format='${escapedkey}\n' except when outputting to a terminal, control characters will be escaped.
- --json
- Enable JSON output. This is intended to be parsed by programs that use git-annex. Each line of output is a JSON object.
- --json-error-messages
- Messages that would normally be output to standard error are included in the JSON instead.
- --migrate-to-backend=backend
- Attempt to migrate the input key to the new backend specified. If successful, outputs information about the migrated key. Otherwise, outputs information about the input key.
- This only does fast migrations; it will not re-hash the content of a key or similar expensive operation.
- One way to use it is to add an extension to a key.
-
git-annex examinekey SHA256--xxx --migrate-to-backend=SHA256E --filename=foo.tar.gz - Or to remove the extension from a key:
-
git-annex examinekey SHA256E--xxx.tar.gz --migrate-to-backend=SHA256 - --filename=name
- The name of a file associated with the key, eg a work tree file. It does not need to exist. This is needed when using --migrate-to-backend to add an extension to the key.
- --batch
- Enable batch mode, in which a line containing a key is read from stdin, the information about it is output to stdout, and repeat.
- In order to also provide the name of a file associated with the key, the line can be in the format "$key $file"
- Also the git-annex-common-options(1) can be used.
SEE ALSO
git-annex(1)
AUTHOR
Joey Hess <id@joeyh.name>