Latest LQ Deal: Latest LQ Deals
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!


  Search this Thread
Old 01-30-2010, 07:44 AM   #1
Registered: Jun 2009
Posts: 106

Rep: Reputation: 15
Create a link(Soft or hard)

This is the problem i'm facing
i have some scripts which gzip some file automatically ,in that script the path for gzip i'have given is like /usr/myown/gzip but my gzip is installed in /usr/bin/gzip.instead of go and edit my script i just want to make a link that point my /usr/myown/gzip to /usr/bin/gzip ,which link do i have to use
Old 01-30-2010, 08:12 AM   #2
Senior Member
Registered: Aug 2009
Posts: 3,790

Rep: Reputation: 653Reputation: 653Reputation: 653Reputation: 653Reputation: 653Reputation: 653
A symlink ( symbolic link ) will be fine, it's not that usual to use hard links in most cases.

ln -s /usr/bin/gzip /usr/myown/gzip


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Difference Between Soft Link & Hard Link rajaniyer123 Solaris / OpenSolaris 16 09-30-2012 04:42 AM
hard link and soft link varunrapelly Linux - Newbie 9 10-02-2008 08:05 AM
An error while trying to create a soft link g_trueblood Slackware 4 10-07-2005 01:17 PM
cp: will not create hard link ????? taiwf Linux - Newbie 3 09-20-2005 07:56 PM
Soft Link and Hard Link Moataz Red Hat 1 04-25-2005 07:30 AM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 12:51 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration