I have installed Debian 10 remotely on a server from a live netinstal iso USB over KVM, but then I encounter this strange problem:
# fdisk -l
bash: fdisk: command not found
However if I use /sbin/fdisk -l , the command executes with no issues.
I'm wondering what has caused this and how can I fix it?
echo $PATH?/sbinis for system commands that regular users don't normally have the rights to execute (likefdisk, for example), so/sbinisn't included in regular users' PATHs by default.sudo fdisk -l, if not work then add to the PATH variable:/sbin/fdisk