LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
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 07-24-2007, 08:14 AM   #1
mfran2002
Member
 
Registered: Nov 2004
Posts: 32

Rep: Reputation: 15
make link to binary file


hi everybody,
i need to create a link (in my /etc/rc3.d) to a binary file "mybin" but i don't know the command syntax...

may you please help me?

thanks a lot!!
 
Old 07-24-2007, 08:20 AM   #2
rocket357
Member
 
Registered: Mar 2007
Location: 127.0.0.1
Distribution: OpenBSD-CURRENT
Posts: 485
Blog Entries: 187

Rep: Reputation: 74
man ln

Basically you want this:

Code:
# ln /path/to/mybin /etc/rc3.d/
The first form of ln listed in the man page is the one I used above...it's:

ln [OPTION] TARGET LINK_NAME
 
Old 07-24-2007, 08:21 AM   #3
mfran2002
Member
 
Registered: Nov 2004
Posts: 32

Original Poster
Rep: Reputation: 15
sorry,
i was too precipitous...

i find the way:

ln -s /etc/myfolder/mybin mylink


excuse me
thanks anyway
 
Old 07-24-2007, 02:24 PM   #4
pixellany
LQ Veteran
 
Registered: Nov 2005
Location: Annapolis, MD
Distribution: Mint
Posts: 17,809

Rep: Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743
Quote:
Originally Posted by mfran2002
i find the way:

ln -s /etc/myfolder/mybin mylink
That only works if you are in the directory where you want the link. (I have always found it to be the most relibale way to make links---"linking in").

Note that you can also do:
ln -s /path/path/filename (makes a link named "filename" in the current directory
 
  


Reply



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
Bash File Name Matching - Binary file .ogg matches !!! maxvonseibold Linux - General 8 01-30-2007 06:31 PM
Reading text file-writting binary file cdog Programming 5 06-13-2006 11:56 AM
Automatically tell text file from binary file? Hosiah Linux - Software 3 05-31-2005 05:22 AM
convert text file to binary excel file ust Linux - General 2 11-23-2004 02:33 AM
mounting a binary file thats not on any file system!?!!? aXoneX Linux - General 7 10-26-2004 02:21 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 10:35 PM.

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
Open Source Consulting | Domain Registration