Files
hexyl/README.md
T

145 lines
3.1 KiB
Markdown
Raw Normal View History

2018-11-06 20:48:31 +01:00
![](doc/logo.svg)
2018-11-06 21:06:01 +01:00
2018-11-06 21:05:44 +01:00
[![Build Status](https://travis-ci.org/sharkdp/hexyl.svg?branch=master)](https://travis-ci.org/sharkdp/hexyl)
2018-11-06 22:26:26 +01:00
[![](https://img.shields.io/crates/l/hexyl.svg?colorB=22ba4c)](https://crates.io/crates/hexyl)
![](https://img.shields.io/crates/v/hexyl.svg?colorB=00aa88)
2018-11-05 23:59:46 +01:00
2018-11-06 21:34:46 +01:00
`hexyl` is a simple hex viewer for the terminal. It uses a colored output to distinguish different categories
of bytes (NULL bytes, printable ASCII characters, ASCII whitespace characters, other ASCII characters and non-ASCII).
2018-11-06 21:19:00 +01:00
## Preview
![](https://i.imgur.com/MWO9uSL.png)
![](https://i.imgur.com/Dp7Wncz.png)
![](https://i.imgur.com/ln3TniI.png)
![](https://i.imgur.com/f8nm8g6.png)
2018-11-06 21:43:50 +01:00
## Installation
2020-03-09 21:05:26 +01:00
### On Ubuntu
*... and other Debian-based Linux distributions.*
If you run Ubuntu 19.10 (Eoan Ermine) or newer, you can install the [officially maintained package](https://packages.ubuntu.com/eoan/hexyl):
```bash
sudo apt install hexyl
```
If you use an older version of Ubuntu, you can download
the latest `.deb` package from the release page and install it via:
2018-11-06 21:43:50 +01:00
``` bash
2020-06-07 15:57:20 +02:00
sudo dpkg -i hexyl_0.8.0_amd64.deb # adapt version number and architecture
2018-11-06 21:43:50 +01:00
```
2020-03-09 21:05:26 +01:00
### On Debian
If you run Debian Buster or newer, you can install the [officially maintained Debian package](https://packages.debian.org/buster/hexyl):
```bash
sudo apt-get install hexyl
```
If you run an older version of Debian, see above for instructions on how to
manually install `hexyl`.
2018-11-08 19:56:06 +01:00
### On Arch Linux
2019-03-16 20:42:38 +01:00
You can install `hexyl` from [the official package repository](https://www.archlinux.org/packages/community/x86_64/hexyl/):
2018-11-08 00:20:13 +08:00
```
2019-03-16 20:42:38 +01:00
pacman -S hexyl
2018-11-08 00:20:13 +08:00
```
2020-05-26 17:47:43 +00:00
### On Void Linux
```
xbps-install hexyl
```
2021-02-08 02:15:41 +02:00
### On Gentoo Linux
Available in [dm9pZCAq overlay](https://github.com/gentoo-mirror/dm9pZCAq)
```
sudo eselect repository enable dm9pZCAq
sudo emerge --sync dm9pZCAq
sudo emerge sys-apps/hexyl::dm9pZCAq
```
2019-01-07 11:34:37 +09:00
### On macOS
2021-06-07 04:03:22 -04:00
Via [Homebrew](https://brew.sh):
2019-01-07 11:34:37 +09:00
```
brew install hexyl
```
2018-11-08 00:20:13 +08:00
2021-06-07 04:03:22 -04:00
...or via [MacPorts](https://www.macports.org):
```
sudo port install hexyl
```
### On FreeBSD
```
pkg install hexyl
```
2020-08-17 09:54:37 +08:00
### on Termux
```
pkg install hexyl
```
or
```
apt install hexyl
```
2019-01-14 13:19:02 -08:00
### Via Nix
```
nix-env -i hexyl
```
2020-11-19 18:56:35 +08:00
### Via Guix
```
guix package -i hexyl
```
Or add the `hexyl` package in the list of packages to be installed in your system configuration (e.g., `/etc/config.scm`).
2018-11-12 08:40:05 +01:00
### On other distributions
2018-11-06 21:43:50 +01:00
Check out the [release page](https://github.com/sharkdp/hexyl/releases) for binary builds.
2019-01-10 08:32:46 +01:00
### On Windows
2019-10-08 20:52:54 +02:00
For now, you will have to install from source via `cargo` (see below). Make sure that you
use a terminal that supports ANSI escape sequences (like ConHost v2 since Windows 10 1703
or Windows Terminal since Windows 10 1903).
2019-01-10 08:32:46 +01:00
2018-11-06 21:43:50 +01:00
### Via cargo
2020-10-30 07:59:49 +01:00
If you have Rust 1.39 or higher, you can install `hexyl` from source via `cargo`:
2018-11-06 21:43:50 +01:00
```
cargo install hexyl
```
2020-10-29 20:10:17 +05:30
### Via snap package
```
sudo snap install hexyl
```
2020-10-31 00:25:00 +05:30
[Get it from the Snap Store](https://snapcraft.io/hexyl)
2020-10-29 20:10:17 +05:30
2018-11-06 21:43:50 +01:00
## License
Licensed under either of
* Apache License, Version 2.0, ([LICENSE-APACHE](LICENSE-APACHE) or http://www.apache.org/licenses/LICENSE-2.0)
* MIT license ([LICENSE-MIT](LICENSE-MIT) or http://opensource.org/licenses/MIT)
at your option.