I can't run fdisk
on Cygwin, either outside or inside of the directory that contains it, despite confirming that:
-
fdisk.exe
exists inside of/sbin
, via both the command line and Windows Explorer -
C:\cygwin64;
,C:\cygwin64\sbin;
andC:\cygwin64\bin;
are set in the PATH environment variable
Running which fdisk
returns a "no fdisk in [PATH]" error, where [PATH] is the contents of my PATH environment variable.
What's going on here?
Best Answer
*NIX works differently than Windows.
You will need to type out the full path
/sbin/fdisk
Or, while in the
/sbin
directory you need to type./fdisk
Here is how you can learn about and modify the *NIX
$path
environment variable.