conversations
listlengths
2
2
[ { "from": "human", "value": "Compare two files, uncompressing them if necessary via the `zdiff` command" }, { "from": "gpt", "value": "`zdiff {{path/to/file1.gz}} {{path/to/file2.gz}}`" } ]
[ { "from": "human", "value": "Compare a file to a `gzip` archive with the same name via the `zdiff` command" }, { "from": "gpt", "value": "`zdiff {{path/to/file}}`" } ]
[ { "from": "human", "value": "Tell me about `zeek`." }, { "from": "gpt", "value": "Passive network traffic analyzer.\nAny output and log files will be saved to the current working directory.\nMore information: <https://docs.zeek.org/en/lts/quickstart.html#zeek-as-a-command-line-utility>.\n" } ]
[ { "from": "human", "value": "Analyze live traffic from a network interface via the `zeek` command" }, { "from": "gpt", "value": "`sudo zeek --iface {{interface}}`" } ]
[ { "from": "human", "value": "Analyze live traffic from a network interface and load custom scripts via the `zeek` command" }, { "from": "gpt", "value": "`sudo zeek --iface {{interface}} {{script1}} {{script2}}`" } ]
[ { "from": "human", "value": "Analyze live traffic from a network interface, without loading any scripts via the `zeek` command" }, { "from": "gpt", "value": "`sudo zeek --bare-mode --iface {{interface}}`" } ]
[ { "from": "human", "value": "Analyze live traffic from a network interface, applying a `tcpdump` filter via the `zeek` command" }, { "from": "gpt", "value": "`sudo zeek --filter {{path/to/filter}} --iface {{interface}}`" } ]
[ { "from": "human", "value": "Analyze live traffic from a network interface using a watchdog timer via the `zeek` command" }, { "from": "gpt", "value": "`sudo zeek --watchdog --iface {{interface}}`" } ]
[ { "from": "human", "value": "Analyze traffic from a PCAP file via the `zeek` command" }, { "from": "gpt", "value": "`zeek --readfile {{path/to/file.trace}}`" } ]
[ { "from": "human", "value": "Tell me about `zegrep`." }, { "from": "gpt", "value": "Find extended regular expression patterns in compressed files using `egrep`.\nMore information: <https://www.unix.com/man-page/freebsd/1/zegrep/>.\n" } ]
[ { "from": "human", "value": "Search for extended regular expressions (supporting `?`, `+`, `{}`, `()` and `|`) in a compressed file (case-sensitive) via the `zegrep` command" }, { "from": "gpt", "value": "`zegrep \"{{search_pattern}}\" {{path/to/file}}`" } ]
[ { "from": "human", "value": "Search for extended regular expressions (supporting `?`, `+`, `{}`, `()` and `|`) in a compressed file (case-insensitive) via the `zegrep` command" }, { "from": "gpt", "value": "`zegrep --ignore-case \"{{search_pattern}}\" {{path/to/file}}`" } ]
[ { "from": "human", "value": "Search for lines that do not match a pattern via the `zegrep` command" }, { "from": "gpt", "value": "`zegrep --invert-match \"{{search_pattern}}\" {{path/to/file}}`" } ]
[ { "from": "human", "value": "Print file name and line number for each match via the `zegrep` command" }, { "from": "gpt", "value": "`zegrep --with-filename --line-number \"{{search_pattern}}\" {{path/to/file}}`" } ]
[ { "from": "human", "value": "Search for lines matching a pattern, printing only the matched text via the `zegrep` command" }, { "from": "gpt", "value": "`zegrep --only-matching \"{{search_pattern}}\" {{path/to/file}}`" } ]
[ { "from": "human", "value": "Recursively search files in a compressed file for a pattern via the `zegrep` command" }, { "from": "gpt", "value": "`zegrep --recursive \"{{search_pattern}}\" {{path/to/file}}`" } ]
[ { "from": "human", "value": "Tell me about `zeisstopnm`." }, { "from": "gpt", "value": "Convert a Zeiss confocal file to Netbpm format.\nMore information: <https://manned.org/zeisstopnm.1>.\n" } ]
[ { "from": "human", "value": "Convert a Zeiss cofocal file into either `.pgm` or `.ppm` format via the `zeisstopnm` command" }, { "from": "gpt", "value": "`zeisstopnm {{path/to/file}}`" } ]
[ { "from": "human", "value": "Convert a Zeiss cofocal file to Netbpm format while explicitly specifying the target file type via the `zeisstopnm` command" }, { "from": "gpt", "value": "`zeisstopnm -{{pgm|ppm}} {{path/to/file}}`" } ]
[ { "from": "human", "value": "Tell me about `zek`." }, { "from": "gpt", "value": "Generate a Go struct from XML.\nMore information: <https://github.com/miku/zek>.\n" } ]
[ { "from": "human", "value": "Generate a Go struct from a given XML from `stdin` and display output on `stdout` via the `zek` command" }, { "from": "gpt", "value": "`cat {{path/to/input.xml}} | zek`" } ]
[ { "from": "human", "value": "Generate a Go struct from a given XML from `stdin` and send output to a file via the `zek` command" }, { "from": "gpt", "value": "`curl -s {{https://url/to/xml}} | zek -o {{path/to/output.go}}`" } ]
[ { "from": "human", "value": "Generate an example Go program from a given XML from `stdin` and send output to a file via the `zek` command" }, { "from": "gpt", "value": "`cat {{path/to/input.xml}} | zek -p -o {{path/to/output.go}}`" } ]
[ { "from": "human", "value": "Tell me about `zellij`." }, { "from": "gpt", "value": "Terminal multiplexer with batteries included.\nSee also `tmux` and `screen`.\nMore information: <https://zellij.dev/documentation/>.\n" } ]
[ { "from": "human", "value": "Start a new named session via the `zellij` command" }, { "from": "gpt", "value": "`zellij --session {{name}}`" } ]
[ { "from": "human", "value": "List existing sessions via the `zellij` command" }, { "from": "gpt", "value": "`zellij list-sessions`" } ]
[ { "from": "human", "value": "Attach to the most recently used session via the `zellij` command" }, { "from": "gpt", "value": "`zellij attach`" } ]
[ { "from": "human", "value": "Open a new pane (inside a zellij session) via the `zellij` command" }, { "from": "gpt", "value": "`<Alt n>`" } ]
[ { "from": "human", "value": "Detach from the current session (inside a zellij session) via the `zellij` command" }, { "from": "gpt", "value": "`<Ctrl o><d>`" } ]
[ { "from": "human", "value": "Tell me about `zfgrep`." }, { "from": "gpt", "value": "Matches fixed strings in possibly compressed files.\nEquivalent to `grep -F` with input decompressed first if necessary.\nMore information: <https://manned.org/zfgrep>.\n" } ]
[ { "from": "human", "value": "Search for an exact string in a file via the `zfgrep` command" }, { "from": "gpt", "value": "`zfgrep {{search_string}} {{path/to/file}}`" } ]
[ { "from": "human", "value": "Count the number of lines that match the given string in a file via the `zfgrep` command" }, { "from": "gpt", "value": "`zfgrep --count {{search_string}} {{path/to/file}}`" } ]
[ { "from": "human", "value": "Show the line number in the file along with the matching lines via the `zfgrep` command" }, { "from": "gpt", "value": "`zfgrep --line-number {{search_string}} {{path/to/file}}`" } ]
[ { "from": "human", "value": "Display all lines except those that contain the search string via the `zfgrep` command" }, { "from": "gpt", "value": "`zfgrep --invert-match {{search_string}} {{path/to/file}}`" } ]
[ { "from": "human", "value": "List only filenames whose content matches the search string at least once via the `zfgrep` command" }, { "from": "gpt", "value": "`zfgrep --files-with-matches {{search_string}} {{path/to/file1 path/to/file2 ...}}`" } ]
[ { "from": "human", "value": "Tell me about `zfs`." }, { "from": "gpt", "value": "Manage ZFS filesystems.\nMore information: <https://manned.org/zfs>.\n" } ]
[ { "from": "human", "value": "List all available zfs filesystems via the `zfs` command" }, { "from": "gpt", "value": "`zfs list`" } ]
[ { "from": "human", "value": "Create a new ZFS filesystem via the `zfs` command" }, { "from": "gpt", "value": "`zfs create {{pool_name/filesystem_name}}`" } ]
[ { "from": "human", "value": "Delete a ZFS filesystem via the `zfs` command" }, { "from": "gpt", "value": "`zfs destroy {{pool_name/filesystem_name}}`" } ]
[ { "from": "human", "value": "Create a Snapshot of a ZFS filesystem via the `zfs` command" }, { "from": "gpt", "value": "`zfs snapshot {{pool_name/filesystem_name}}@{{snapshot_name}}`" } ]
[ { "from": "human", "value": "Enable compression on a filesystem via the `zfs` command" }, { "from": "gpt", "value": "`zfs set compression=on {{pool_name/filesystem_name}}`" } ]
[ { "from": "human", "value": "Change mountpoint for a filesystem via the `zfs` command" }, { "from": "gpt", "value": "`zfs set mountpoint={{/my/mount/path}} {{pool_name/filesystem_name}}`" } ]
[ { "from": "human", "value": "Tell me about `zgrep`." }, { "from": "gpt", "value": "Grep text patterns from files within compressed file (equivalent to `grep -Z`).\nMore information: <https://manned.org/zgrep>.\n" } ]
[ { "from": "human", "value": "Grep a pattern in a compressed file (case-sensitive) via the `zgrep` command" }, { "from": "gpt", "value": "`zgrep {{pattern}} {{path/to/compressed/file}}`" } ]
[ { "from": "human", "value": "Grep a pattern in a compressed file (case-insensitive) via the `zgrep` command" }, { "from": "gpt", "value": "`zgrep -i {{pattern}} {{path/to/compressed/file}}`" } ]
[ { "from": "human", "value": "Output count of lines containing matched pattern in a compressed file via the `zgrep` command" }, { "from": "gpt", "value": "`zgrep -c {{pattern}} {{path/to/compressed/file}}`" } ]
[ { "from": "human", "value": "Display the lines which don’t have the pattern present (Invert the search function) via the `zgrep` command" }, { "from": "gpt", "value": "`zgrep -v {{pattern}} {{path/to/compressed/file}}`" } ]
[ { "from": "human", "value": "Grep a compressed file for multiple patterns via the `zgrep` command" }, { "from": "gpt", "value": "`zgrep -e \"{{pattern_1}}\" -e \"{{pattern_2}}\" {{path/to/compressed/file}}`" } ]
[ { "from": "human", "value": "Use extended regular expressions (supporting `?`, `+`, `{}`, `()` and `|`) via the `zgrep` command" }, { "from": "gpt", "value": "`zgrep -E {{regular_expression}} {{path/to/file}}`" } ]
[ { "from": "human", "value": "Print 3 lines of [C]ontext around, [B]efore, or [A]fter each match via the `zgrep` command" }, { "from": "gpt", "value": "`zgrep -{{C|B|A}} {{3}} {{pattern}} {{path/to/compressed/file}}`" } ]
[ { "from": "human", "value": "Tell me about `zig`." }, { "from": "gpt", "value": "The Zig compiler and toolchain.\nMore information: <https://ziglang.org>.\n" } ]
[ { "from": "human", "value": "Compile the project in the current directory via the `zig` command" }, { "from": "gpt", "value": "`zig build`" } ]
[ { "from": "human", "value": "Compile and run the project in the current directory via the `zig` command" }, { "from": "gpt", "value": "`zig build run`" } ]
[ { "from": "human", "value": "Initialize a `zig build` project with library and executable via the `zig` command" }, { "from": "gpt", "value": "`zig init`" } ]
[ { "from": "human", "value": "Create and run a test build via the `zig` command" }, { "from": "gpt", "value": "`zig test {{path/to/file.zig}}`" } ]
[ { "from": "human", "value": "Cross compile, build and run a project for `x86_64` architecture and `windows` operating system via the `zig` command" }, { "from": "gpt", "value": "`zig build run -fwine -Dtarget=x86_64-windows`" } ]
[ { "from": "human", "value": "Reformat Zig source into canonical form via the `zig` command" }, { "from": "gpt", "value": "`zig fmt {{path/to/file.zig}}`" } ]
[ { "from": "human", "value": "Translate a C file to `zig` via the `zig` command" }, { "from": "gpt", "value": "`zig translate-c -lc {{path/to/file.c}}`" } ]
[ { "from": "human", "value": "Use Zig as a drop-in C++ compiler via the `zig` command" }, { "from": "gpt", "value": "`zig c++ {{path/to/file.cpp}}`" } ]
[ { "from": "human", "value": "Tell me about `zint`." }, { "from": "gpt", "value": "Generate barcodes and QR codes.\nMore information: <https://www.zint.org.uk/manual/chapter/4>.\n" } ]
[ { "from": "human", "value": "Generate a barcode and save it via the `zint` command" }, { "from": "gpt", "value": "`zint --data \"{{UTF-8 data}}\" --output {{path/to/file}}`" } ]
[ { "from": "human", "value": "Specify a code type for generation via the `zint` command" }, { "from": "gpt", "value": "`zint --barcode {{code_type}} --data \"{{UTF-8 data}}\" --output {{path/to/file}}`" } ]
[ { "from": "human", "value": "List all supported code types via the `zint` command" }, { "from": "gpt", "value": "`zint --types`" } ]
[ { "from": "human", "value": "Tell me about `zip2john`." }, { "from": "gpt", "value": "Extract password hashes from Zip archives for use with John the Ripper password cracker.\nThis is a utility tool usually installed as part of the John the Ripper installation.\nMore information: <https://www.op...
[ { "from": "human", "value": "Extract the password hash from an archive, listing all files in the archive via the `zip2john` command" }, { "from": "gpt", "value": "`zip2john {{path/to/file.zip}}`" } ]
[ { "from": "human", "value": "Extract the password hash using [o]nly a specific compressed file via the `zip2john` command" }, { "from": "gpt", "value": "`zip2john -o {{path/to/compressed_file}} {{path/to/file.zip}}`" } ]
[ { "from": "human", "value": "Extract the password hash from a compressed file to a specific file (for use with John the Ripper) via the `zip2john` command" }, { "from": "gpt", "value": "`zip2john -o {{path/to/compressed_file}} {{path/to/file.zip}} > {{file.hash}}`" } ]
[ { "from": "human", "value": "Tell me about `zipalign`." }, { "from": "gpt", "value": "Zip archive alignment tool.\nPart of the Android SDK build tools.\nMore information: <https://developer.android.com/tools/zipalign>.\n" } ]
[ { "from": "human", "value": "Align the data of a Zip file on 4-byte boundaries via the `zipalign` command" }, { "from": "gpt", "value": "`zipalign {{4}} {{path/to/input.zip}} {{path/to/output.zip}}`" } ]
[ { "from": "human", "value": "Check that a Zip file is correctly aligned on 4-byte boundaries and display the results in a verbose manner via the `zipalign` command" }, { "from": "gpt", "value": "`zipalign -v -c {{4}} {{path/to/input.zip}}`" } ]
[ { "from": "human", "value": "Tell me about `zipcloak`." }, { "from": "gpt", "value": "Encrypt the contents within a Zip archive.\nMore information: <https://manned.org/zipcloak>.\n" } ]
[ { "from": "human", "value": "Encrypt the contents of a Zip archive via the `zipcloak` command" }, { "from": "gpt", "value": "`zipcloak {{path/to/archive.zip}}`" } ]
[ { "from": "human", "value": "Decrypt the contents of a Zip archive via the `zipcloak` command" }, { "from": "gpt", "value": "`zipcloak {{[-d|--decrypt]}} {{path/to/archive.zip}}`" } ]
[ { "from": "human", "value": "Output the encrypted contents into a new Zip archive via the `zipcloak` command" }, { "from": "gpt", "value": "`zipcloak {{path/to/archive.zip}} {{[-O|--output-file]}} {{path/to/encrypted.zip}}`" } ]
[ { "from": "human", "value": "Tell me about `zipgrep`." }, { "from": "gpt", "value": "Find patterns in files in a Zip archive using extended regular expression (supports `?`, `+`, `{}`, `()` and `|`).\nMore information: <https://manned.org/zipgrep>.\n" } ]
[ { "from": "human", "value": "Search for a pattern within a Zip archive via the `zipgrep` command" }, { "from": "gpt", "value": "`zipgrep \"{{search_pattern}}\" {{path/to/file.zip}}`" } ]
[ { "from": "human", "value": "Print file name and line number for each match via the `zipgrep` command" }, { "from": "gpt", "value": "`zipgrep -H -n \"{{search_pattern}}\" {{path/to/file.zip}}`" } ]
[ { "from": "human", "value": "Search for lines that do not match a pattern via the `zipgrep` command" }, { "from": "gpt", "value": "`zipgrep -v \"{{search_pattern}}\" {{path/to/file.zip}}`" } ]
[ { "from": "human", "value": "Specify files inside a Zip archive from search via the `zipgrep` command" }, { "from": "gpt", "value": "`zipgrep \"{{search_pattern}}\" {{path/to/file.zip}} {{file/to/search1}} {{file/to/search2}}`" } ]
[ { "from": "human", "value": "Exclude files inside a Zip archive from search via the `zipgrep` command" }, { "from": "gpt", "value": "`zipgrep \"{{search_pattern}}\" {{path/to/file.zip}} -x {{file/to/exclude1}} {{file/to/exclude2}}`" } ]
[ { "from": "human", "value": "Tell me about `zipinfo`." }, { "from": "gpt", "value": "List detailed information about the contents of a Zip file.\nMore information: <https://manned.org/zipinfo>.\n" } ]
[ { "from": "human", "value": "List all files in a Zip file in long format (permissions, ownership, size, and modification date) via the `zipinfo` command" }, { "from": "gpt", "value": "`zipinfo {{path/to/archive.zip}}`" } ]
[ { "from": "human", "value": "List all files in a Zip file via the `zipinfo` command" }, { "from": "gpt", "value": "`zipinfo -1 {{path/to/archive.zip}}`" } ]
[ { "from": "human", "value": "Tell me about `zip`." }, { "from": "gpt", "value": "Package and compress (archive) files into a Zip archive.\nSee also: `unzip`.\nMore information: <https://manned.org/zip>.\n" } ]
[ { "from": "human", "value": "Add files/directories to a specific archive via the `zip` command" }, { "from": "gpt", "value": "`zip {{[-r|--recurse-paths]}} {{path/to/compressed.zip}} {{path/to/file_or_directory1 path/to/file_or_directory2 ...}}`" } ]
[ { "from": "human", "value": "Remove files/directories from a specific archive via the `zip` command" }, { "from": "gpt", "value": "`zip {{[-d|--delete]}} {{path/to/compressed.zip}} {{path/to/file_or_directory1 path/to/file_or_directory2 ...}}`" } ]
[ { "from": "human", "value": "Archive files/directories excluding specified ones via the `zip` command" }, { "from": "gpt", "value": "`zip {{[-r|--recurse-paths]}} {{path/to/compressed.zip}} {{path/to/file_or_directory1 path/to/file_or_directory2 ...}} {{-x|--exclude}} {{path/to/excluded_files_or...
[ { "from": "human", "value": "Archive files/directories with a specific compression level (`0` - the lowest, `9` - the highest) via the `zip` command" }, { "from": "gpt", "value": "`zip {{[-r|--recurse-paths]}} -{{0..9}} {{path/to/compressed.zip}} {{path/to/file_or_directory1 path/to/file_or_dire...
[ { "from": "human", "value": "Create an encrypted archive with a specific password via the `zip` command" }, { "from": "gpt", "value": "`zip {{[-r|--recurse-paths]}} {{[-e|--encrypt]}} {{path/to/compressed.zip}} {{path/to/file_or_directory1 path/to/file_or_directory2 ...}}`" } ]
[ { "from": "human", "value": "Archive files/directories to a multi-part split Zip archive (e.g. 3 GB parts) via the `zip` command" }, { "from": "gpt", "value": "`zip {{[-r|--recurse-paths]}} {{[-s|--split-size]}} {{3g}} {{path/to/compressed.zip}} {{path/to/file_or_directory1 path/to/file_or_direc...
[ { "from": "human", "value": "Print a specific archive contents via the `zip` command" }, { "from": "gpt", "value": "`zip {{[-sf|--split-size --freshen]}} {{path/to/compressed.zip}}`" } ]
[ { "from": "human", "value": "Tell me about `zipnote`." }, { "from": "gpt", "value": "View, add, or edit a Zip archive's comments.\nFiles can also be renamed in the Zip archive.\nMore information: <https://manned.org/zipnote>.\n" } ]
[ { "from": "human", "value": "View the comments on a Zip archive via the `zipnote` command" }, { "from": "gpt", "value": "`zipnote {{path/to/file.zip}}`" } ]
[ { "from": "human", "value": "Extract the comments on a Zip archive to a file via the `zipnote` command" }, { "from": "gpt", "value": "`zipnote {{path/to/file.zip}} > {{path/to/file.txt}}`" } ]
[ { "from": "human", "value": "Add/Update comments in a Zip archive from a file via the `zipnote` command" }, { "from": "gpt", "value": "`zipnote -w {{path/to/file.zip}} < {{path/to/file.txt}}`" } ]
[ { "from": "human", "value": "Tell me about `zless`." }, { "from": "gpt", "value": "View `gzip` and `xz` compressed files.\nMore information: <https://manned.org/zless>.\n" } ]
[ { "from": "human", "value": "Page through a `gzip` compressed file with `less` via the `zless` command" }, { "from": "gpt", "value": "`zless {{file.txt.gz}}`" } ]
[ { "from": "human", "value": "Tell me about `zlib-flate`." }, { "from": "gpt", "value": "Raw zlib compression and decompression program.\nPart of `qpdf`.\nMore information: <https://manned.org/zlib-flate>.\n" } ]
[ { "from": "human", "value": "Compress a file via the `zlib-flate` command" }, { "from": "gpt", "value": "`zlib-flate -compress < {{path/to/input_file}} > {{path/to/compressed.zlib}}`" } ]
[ { "from": "human", "value": "Uncompress a file via the `zlib-flate` command" }, { "from": "gpt", "value": "`zlib-flate -uncompress < {{path/to/compressed.zlib}} > {{path/to/output_file}}`" } ]