Is there an alternative command that does the same thing as
findmnt -T . -o TARGET |tail -n 1?
Example: If my current working directory is
/media/username/HDD/subdir1/subdir2, that command would output
In Windows, the path to the highest directory of the current drive/partition is
/ works in cmd), because Windows does work with drive letters instead of "everything is a file".
Unix works more unified and modular, but how can one find to the mount point of a partition? If there is no shorter solution than
findmnt -T . -o TARGET |tail -n 1, it is no problem. I just wanted to know whether there is a different way.