LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
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!

Notices


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

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


Hi,
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
kbp
Senior Member
 
Registered: Aug 2009
Posts: 3,790

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

Code:
ln -s /usr/bin/gzip /usr/myown/gzip
cheers
 
  


Reply


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


All times are GMT -5. The time now is 07:15 AM.

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