Crates.io | urdig |
lib.rs | urdig |
version | 1.0.0 |
source | src |
created_at | 2020-12-16 09:24:18.574237 |
updated_at | 2021-01-01 14:38:06.905164 |
description | urdig is a tool, which can be used to display informations about several (udev)-devices. |
homepage | https://github.com/ph0llux/urdig |
repository | https://github.com/ph0llux/urdig |
max_upload_size | |
id | 323531 |
size | 34,959 |
The udev recognized devices information grabber.
You need the udev development files, which could be installed by following commands (at the according distributions):
Distribution | Installation command |
---|---|
Fedora | dnf install systemd-devel |
Ubuntu | apt install libudev-dev |
Debian | apt install libudev-dev |
You need also a rust compiler and cargo. The most suitable way to install it, is using rustup:
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh
You can easy install urdig by
cargo install urdig
You could download the tool manually and build it with cargo:
git clone https://github.com/ph0llux/urdig
cd urdig
cargo build --release
The binary can be find at ./target/release/urdig
.
You can print the help menu by using
$ urdig
urdig 0.9.3
ph0llux <ph0llux@pm.me>
Grab device informations via libudev and display or parse them.
USAGE:
urdig [SUBCOMMAND]
FLAGS:
-h, --help Prints help information
-V, --version Prints version information
SUBCOMMANDS:
device print options for specific device, which is called via its name. You can also use devnodes or
syspaths.
help Prints this message or the help of the given subcommand(s)
subsystems interacting with udev subsystems.
and grab informations of any device
$ urdig device -p /dev/sda
[output omitted]