0

Is there a command, or maybe ls has a flag that also display the filesystem the contents of a directory is mounted on?

Kusalananda
  • 320,670
  • 36
  • 633
  • 936
Finlay Weber
  • 121
  • 4
  • Quite likely a dupe of https://unix.stackexchange.com/questions/90252/how-to-get-mount-point-of-filesystem-containing-given-file or of https://unix.stackexchange.com/questions/34718/is-there-a-command-to-see-where-a-disk-is-mounted – Kusalananda Mar 09 '21 at 11:58
  • `findmnt -no fstype -T directory` –  Mar 09 '21 at 12:41

1 Answers1

0

You can use lsblk:

$ lsblk -o MOUNTPOINT,FSTYPE
/some/mounted/dir ext4
schrodingerscatcuriosity
  • 12,087
  • 3
  • 29
  • 57