Is there a command in MSYS2 terminal that can be used to determine whether a file is a symbolic link or a windows shortcut .lnk file? For example:
$ touch a.txt # Create a symbolic link: $ MSYS=winsymlinks:nativestrict ln -s a.txt b.txt # Create a .lnk shortcut file: $ MSYS=winsymlinks ln -s a.txt c.txt $ ls -l total 4.0K -rw-r--r-- 1 hakon hakon 0 Jan 22 20:54 a.txt lrwxrwxrwx 1 hakon hakon 5 Jan 22 20:54 b.txt -> a.txt lrwxrwxrwx 1 hakon hakon 5 Jan 22 20:55 c.txt -> a.txt
From the above output, it is not possible to distinguish between the two types of links.
Note: I found that I can use
fsutil to check for symbolic links, but then I must know in advance that the file is a symbolic link.