Linux command
fq 命令
文件
复制后可按需替换文件名、目录或参数。
常用示例
Inspect
fq . [file]
Decode
fq -d [mp4|flac|jpeg|...] . [file]
Query
fq '.tracks[0].duration' [file]
Open
fq -i [file]
说明
fq is a tool for inspecting binary files using a jq-like query language. It can decode and query over 100 different binary formats including MP4, FLAC, JPEG, PCAP, ELF, and many more. The tool provides a REPL with autocomplete, allowing interactive exploration of binary structures. It's useful for debugging, reverse engineering, and understanding file formats.
参数
- -d, --decode _FORMAT_
- Decode as specific format
- -i, --interactive
- Start interactive REPL
- -n, --null-input
- Use null as input value
- -r, --raw-output
- Output raw strings
- -c, --compact-output
- Compact output (no pretty print)
- --help
- Display help and exit
- --version
- Display version and exit
FAQ
What is the fq command used for?
fq is a tool for inspecting binary files using a jq-like query language. It can decode and query over 100 different binary formats including MP4, FLAC, JPEG, PCAP, ELF, and many more. The tool provides a REPL with autocomplete, allowing interactive exploration of binary structures. It's useful for debugging, reverse engineering, and understanding file formats.
How do I run a basic fq example?
Run `fq . [file]` in a terminal, then adjust file names, paths, flags, or remote targets for your system.
What does -d, --decode _FORMAT_ do in fq?
Decode as specific format