How can I make shortcut file in Linux?

Asked By 10 points N/A Posted on -
qa-featured

Hi I am Zion, I want to create shortcut link for on of my desired file in desktop, how can I do that?

SHARE
Best Answer by Jackson Paul
Answered By 30 points N/A #132555

How can I make shortcut file in Linux?

qa-featured

Hi Zion,

Red Hat Linux has nice command to make shortcut file. Shortcut file is called in Linux is Link file.

Two type of link files are exist in RHEL (Red Hat Enterprise Linux) 1. Soft Link 2. Hard Link.

The command is to create soft link is:

# ln -s < file name > [link name ]

Example:

# ln –s /etc/passwd /root/Desktop/password

Note:Here /root/Desktop/password is shortcut file for /etc/passwd.

Zenith Keen

Best Answer
Best Answer
Answered By 0 points N/A #132556

How can I make shortcut file in Linux?

qa-featured

Hi zion,

You can open a shortcut link of any file easily. You can use drag and drop method for this by creating a symlink inside the source files and copy (cp) that where you want it to put. So, you'll have to create a source link for the file. You can follow the example here:

ln -s /long/path/to/dir/original /path/myShortcut

CTRL + Q to Enable/Disable GoPhoto.it
 
Hope this shall help you.
Thanks.

Related Questions