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 10-16-2005, 01:27 AM   #1
Anthraxnz
LQ Newbie
 
Registered: Sep 2005
Posts: 21

Rep: Reputation: 15
shortcuts to bin files?


dunno how to word this but.
not entirly sure what im talking about either :S

but heres what i got

i got some bin files in root/home/folder
is it possible to link a command to run that bin file?

like how ifconfig is located in /sbin and you can type ifconfig from anywhere and it runs the ifconfig exe

hope that makes some sense.

so if i were in /home/name/desktop for example and wanted to run eg.bin i would just type ie -fg.
 
Old 10-16-2005, 01:39 AM   #2
jrdioko
Member
 
Registered: Oct 2002
Distribution: Debian 6.0.2 (squeeze)
Posts: 944

Rep: Reputation: 30
Those are executables (extensions like .bin don't matter in Linux, by the way) in your PATH that can be run just by typing their name. To see your current PATH (and maybe move some things there), type "echo $PATH"

If you want to add something to your PATH, add a line like the following to your ~/.bashrc file:

export PATH=$PATH:/new/folder/here
 
Old 10-16-2005, 01:50 AM   #3
Anthraxnz
LQ Newbie
 
Registered: Sep 2005
Posts: 21

Original Poster
Rep: Reputation: 15
sorry dont follow

heres what i have

i have the file "ncftpget.bin" located in "root/home/ncftp/bin"

and want to be able to run it from anywhere on my system.

i typed echo $PATH and it printed this out

"/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin:/usr/X11R6/bin:/root/bin"

didnt understand what this does
export PATH=$PATH:/new/folder/here

sorry totally noob to linux
 
Old 10-16-2005, 01:56 AM   #4
jrdioko
Member
 
Registered: Oct 2002
Distribution: Debian 6.0.2 (squeeze)
Posts: 944

Rep: Reputation: 30
Well, the short answer is to type "pico ~/.bashrc" or "nano ~/.bashrc" to edit your configuration file for bash (the shell) and add the line:

Code:
export PATH=$PATH:/root/home/ncftp/bin
Then if you open a new shell and type "echo $PATH" you should see that the new folder is in the list, meaning you can just type "ncftpget.bin" anywhere and it will run.

The longer answer is that there's probably a better way to do things. First, I hope this is a system administration kind of tool and that you're not running all the time as root, since that's very dangerous.

Second, the directory /root is root's home directory, just as /home/username is the home directory for normal users, so I'm not sure why there's a /root/home directory.

Third, you usually don't install programs in your home directory. It's pretty common to put them somewhere in /usr/local. I install from source, so I download files to /usr/local/src and extract/install them from there. That installs the files in the right places so they're already in my PATH and can be run just by typing the filename. If you look in the documentation for the program, it might give you some more information on the recommended way to install it.
 
Old 10-16-2005, 01:59 AM   #5
Anthraxnz
LQ Newbie
 
Registered: Sep 2005
Posts: 21

Original Poster
Rep: Reputation: 15
i didnt come with any documention

its from www.ncftp.com
 
Old 10-16-2005, 02:02 AM   #6
jrdioko
Member
 
Registered: Oct 2002
Distribution: Debian 6.0.2 (squeeze)
Posts: 944

Rep: Reputation: 30
Click on "Download" then "installation instructions"
 
Old 10-16-2005, 02:17 AM   #7
Anthraxnz
LQ Newbie
 
Registered: Sep 2005
Posts: 21

Original Poster
Rep: Reputation: 15
thats a deception, doesnt matter anyway anymore i got it working
thanks for your help

about those instructions tho
your reading them up untill it says somthing about perl5 then it turns of that the instructions are for the server version not the client
 
Old 10-16-2005, 02:19 AM   #8
jrdioko
Member
 
Registered: Oct 2002
Distribution: Debian 6.0.2 (squeeze)
Posts: 944

Rep: Reputation: 30
Ah, ok. Glad you got it working.
 
  


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
Installing .bin-files, leave the file in /usr/local/bin/ ? lagu2653 Linux - Software 1 11-08-2005 09:30 PM
.sit files and .bin files in Linux pierre24 Linux - Newbie 2 02-02-2005 08:55 AM
How can I install Bin Files? or tg files? GeKsKe-XP Linux - Software 3 03-23-2004 04:54 PM
cant install .bin files, tar.gz files or anyother format!!! madskillz Linux - Newbie 4 10-05-2003 11:28 AM
help with bin files... kublador Linux - General 7 02-20-2003 01:41 PM

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

All times are GMT -5. The time now is 07:23 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