Ubuntu – How to create desktop shortcut on 19.10

shortcuts

I want to create a shortcut on my desktop from a txt file. How can I do that? I use Ubuntu 19.10. Thanks.

Niklas

Best Answer

Let's assume that your file's path is : /home/username/folder1/file.txt and you want to create a Desktop shortcut for that file.
You need to open the terminal and run the following command:

ln -s <absolute_path_of_the_file> <shortcut_path>

So in this example, it will be:

ln -s /home/username/folder1/file.txt /home/username/Desktop/

Don't forget to include the absolute path of the file, otherwise the shortcut will be broken.

Related Question