Hi, On Fri, Dec 01, 2023 at 07:06:58PM +0000, fuf wrote: > root@debian:/sbin# fdisk -l > bash: fdisk: command not found > > whereas: > root@debian:/sbin# ls -al > ..... > -rwxr-xr-x 1 root root 169520 Mar 23 2023 fdisk > .... > why?
My first guess is that you may have done "su" which results in you not having /sbin in your path. So you need to execute it as /sbin/fdisk, or "su -", or become root by some other means. https://sources.debian.org/src/util-linux/2.33.1-0.1/debian/util-linux.NEWS/ https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=833256#80 This has been the case since the release of Debian 10 (buster). If it's not that, please state Debian version, how you became root, and $ ls -la /sbin/fdisk Thanks, Andy -- https://bitfolk.com/ -- No-nonsense VPS hosting