I am tyring to understand linux file system layout. Why does the command work inside virtual box but not on linux shell on windows?
I tried to use the command sudo fdisk -l dev/sda on both my virtual box(Ubuntu) and Ubuntu on windows(from microsoft store). It didn't work on any of them but when I changed the command to sudo fdisk -l, it worked inside virtual box but not on linux bash shell on windows.
Inside linux shell on windows:
~$ sudo fdisk -l /dev/sda fdisk:cannot open /dev/sda: No such file or directory :~$ sudo fdisk -l fdisk: cannot open /proc/partitions: No such file or directory :~$ man fdisk :~$ whereis fdisk fdisk: /sbin/fdisk /usr/share/man/man8/fdisk.8.gz