Desktop Shortcut for Files
To create a desktop shortcut for any type of file. We can use the following command –
ln -s <full path to file> /home/<username>/Desktop
For our example, we want to create a shortcut for a file that is available in the Documents folder and its name is myfile.pdf.
Example:
ln -s /home/satyajit/Documents/myfile.pdf /home/satyajit/Desktop
Below is the terminal shell depiction after executing the command –
Create Desktop Shortcuts Using The Terminal on Ubuntu
Ubuntu is the most popular Linux distribution based on Debian. Linux is always tricky to use. We can easily create a Desktop shortcut for our files, folders, and installed software easily on Windows or Mac but on Ubuntu, it needs some work. In this article, we are going to discuss how to create a desktop shortcut for an installed application and files on Ubuntu.