sfdisk command not found
Introduction
When you run more command in linux terminal / console, you get the following error message
sfdisk: command not found
or when using sudo you get the following error message
sudo: sfdisk: command not found
Solutions to sfdisk: command not found
How To Fix sfdisk: command not found in Ubuntu / Debian / Kali Linux / Raspbian
In Ubuntu sfdisk is provided by fdisk package.
fdisk is:
This package contains the classic fdisk, sfdisk and cfdisk partitioning utilities from the util-linux suite.
The utilities included in this package allow you to partition your hard disk. The utilities supports both modern and legacy partition tables (eg. GPT, MBR, etc).
The fdisk utility is the classical text-mode utility. The cfdisk utilitity gives a more userfriendly curses based interface. The sfdisk utility is mostly for automation and scripting uses.
To fix this problem, we can install more using the command below.
sudo apt-get -y install fdisk
This command might take some time to finish depending on your machine internet connection.
You can also use apt command to install fdisk.
sudo apt -y install fdisk
Or if you have aptitude installed you can use the following command.
sudo aptitude install fdisk
Summary
In this tutorial we learn how to fix sfdisk command not found error in Ubuntu / Debian / Kali Linux or Raspbian distribution.