How to Create Shortcuts in Linux with Symbolic Links?[Linux Tip]

by Keith Dsouza | Translate | Print
Tuesday, 29th Jul 2008 | Share


Share How to Create Shortcuts in Linux with Symbolic Links?[Linux Tip] on Twitter Share How to Create Shortcuts in Linux with Symbolic Links?[Linux Tip] on Facebook Save How to Create Shortcuts in Linux with Symbolic Links?[Linux Tip] To Delicious Favorites Stumble How to Create Shortcuts in Linux with Symbolic Links?[Linux Tip] Share How to Create Shortcuts in Linux with Symbolic Links?[Linux Tip] on Digg Get Instant Updates as RSS Feeds from Techie Buzz

Windows users should be quite familiar with shortcuts, which allow them to launch programs by creating a link to the executable. Linux users too can create shortcuts, to quickly launch files and folders. The shortcuts in Linux are also known symbolic links.

Creating shortcuts definitely saves you a lot of time, if you have several folders and browsing to them would require you to change directories frequently a simple shortcut would save you the time required to browse to the folder.

We have symbolic links to our themes and plugins folders for this site in the FTP SFTP user home directory. The symbolic link ensures that we can easily navigate to the folders, without having to go through multiple directories to reach the destination file or folder. Using this simple trick you can open any folder by just using a single click or command in Linux.

In Linux based systems, you can use the “ln” command to create symbolic links to any file or folders, for example we created a symbolic link to our plugins folder using the following command.

ln –s ~/var/www/techie-buzz.com/wp-content/plugins

The “-s” parameter tells the command to create a symbolic link (aka shortcut) rather than a hard link. Once you have created the symbolic link you can use the “cd” command to traverse to the folder, the “cd” command will take you to the actual folder you created a link for, check the screenshot below;

symbolic-link-tutorial-screenshot 

You will also see a shortcut to the plugins folder when you login to your FTP site, check the screenshot below;

sftp-symbolic-link-shortcut-screenshot

Simple things like this add up to save you a lot of time and keep you productive. Every few seconds you save, can add up to a enormous amount of time, so go ahead and create those shortcuts in Linux using symbolic links and start exploring your files and folders with ease, if you have any questions or queries feel free to contact us.

Want your Linux question answered? Feel free to send us your questions by filling out this form.



Share

One Response so far | Share Your Opinions!

  1. Sathya
    July 30th, 2008 at 12:28 am #

    The syntax you’ve mentioned is wrong. It should be

    ln -s

    eg:

    ln -s ~/var/www/techie-buzz.com/wp-content/plugins ~/plugins

    This way, when you goto ~/plugins you’re linked to the plugins directory in ~/var/www/techie-buzz.com/wp-content/plugins

    Reply to this comment

Leave a Comment

Note: We discourage users from using keywords in their names while posting comments, most of them get caught by spam, also it really would be more fruitful in knowing people who comment by their real name, rather than by using a name no one relates to. In future we reserve the right to delete comments from users using a name other than their own.

XHTML: You can use these tags: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>