The nvme-cli is a command line tool used to manage and interact with NVMe (Non-Volatile Memory Express) storage devices - like NVMe SSDs - on Linux systems. It gives you low-level access to control, monitor, and troubleshoot NVMe devices. This tutorial explains how to install nvme-cli on Ubuntu 24.04.
Install nvme-cli
Update the package lists:
sudo apt update
Execute the following command to install nvme-cli:
sudo apt install -y nvme-cli
After installation, check the nvme-cli version using this command:
nvme version
Testing nvme-cli
We can use the nvme list
command to scan and display all NVMe devices connected to the system. It shows useful information like device paths, model numbers, firmware versions, and capacities.
nvme list
Output example:
Node Generic SN Model Namespace Usage Format FW Rev
------------- ----------- ---------------- ---------------------------------------- ---------- -------------------------- ---------------- --------
/dev/nvme0n1 /dev/ng0n1 S73UNX0R123456K Samsung SSD 990 PRO with Heatsink 2TB 0x1 395.29 GB / 2.00 TB 512 B + 0 B 3B2QJXD7
Uninstall nvme-cli
To completely uninstall nvme-cli and all its associated dependencies, execute this command:
sudo apt purge --autoremove -y nvme-cli
Leave a Comment
Cancel reply