r/linuxmint • u/mabee_steve • 22h ago
SOLVED XFCE and Symlinks confusing me
I have a file that I open in my text editor (xed) almost daily. For convenience, I wanted to create a symlink on my desktop that would point to the actual file. Coming from windows, I understand this to be the closing thing to a "shortcut". After looking in Thunar for a UI way to create a symlink, I ended up using the ln command, specifically: ln Notes\ Scratchpad.txt ~/Desktop
Sure enough, a new... file? Object? Well, something that -looks- like a text file appeared on my desktop. I checked the properties and nothing I saw indicated it was a symlink, instead it looked just like a copy of the file. To test this, I opened the symlink on the Desktop, made an edit saved and closed. Then opened the file from the actual storage location and it had the same edit - OK, I guess it's a symlink!
Well, I wanted more evidence because it bothers me that it looks JUST LIKE A FILE, both in the UI and when I run ls -l
-rw-rw-r-- 2 steve steve 45942 Dec 3 09:33 'Notes Scratchpad.txt'I searched on the web and found examples of using the test command, but those results are indicating both objects/files/whatever or regular files (i.e., not symlinks). Note: I ran this command on each of the files
test -h Notes\ Scratchpad.txt && echo "symlink" || echo "reg file"I'm confused - what did the `ln` command create? If it IS a symlink, how in the world are you supposed to know or determine that?

