Ask Ubuntu is a question and answer site for Ubuntu users and developers. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I'm trying to access some file on my company's local network. The file I was looking for appears to be a Windows shortcut (.lnk) and, of course, I can't follow it from my Ubuntu.

I didn't find any option with smbclient to be able to access what's behind the link. Does anyone have an idea on how to get there?

I don't need Samba to follow the link, I just need to know where it goes, so I can access the file directly.

share|improve this question
up vote 2 down vote accepted

You can either

  1. Try opening the file using an editor (like gedit) and see if it helps you see the link's target.

  2. Use lnkforward (Kubuntu Only)

  3. Use Strings
    strings filename.lnk
    Gives out lots of information, including the target location.


[1940][DC++]$ strings Uninstall.lnk 
Program Files
C:\Program Files\DC++\uninstall.exe
share|improve this answer
The editor works, it's not very user-friendly but one can read the important informations anyway. I didn't try lnkforward. strings is exactly what I wanted! Thanks a lot! – SteeveDroz Oct 18 '11 at 6:58

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.