Linux Help
guides forums blogs
Home Desktops Distributions ISO Images Logos Newbies Reviews Software Support & Resources Linuxhelp Wiki

Welcome Guest ( Log In | Register )

Advanced DNS Management
New ZoneEdit. New Managment.


Sign Up Now
Reply to this topicStart new topic
> Creating Link Or Something -- Built In Command?, need info on how to create command ???
post May 4 2003, 04:38 PM
Post #1

Whats this Lie-nix Thing?

Group: Members
Posts: 1
Joined: 4-May 03
Member No.: 782

i have a file, wget, in /usr/local/bin ... right now, i have to access it by typing that entire directory. how do i create something where i can just type wget in any directory i'm in and it will execute? i have got alias to work to do this, but is there another way?
Go to the top of the page
+Quote Post
post May 5 2003, 06:21 AM
Post #2

Its GNU/

Group: Admin
Posts: 1,254
Joined: 21-September 02
From: St John's, Newfoundland, Canada
Member No.: 3

/usr/local/bin needs to be a part of your PATH. Which is very strange because /usr/local/bin is almost automatically part of your PATH.

Here's a little more explanation:

Your PATH is a list of directories that hold your executables which means, as you said, you can go anywhere on your system and execute the commands in these directories without the full path. To add /usr/local/bin to your path, do the following:

export PATH=$PATH:/usr/local/bin

You should add the above line to your ~/.bashrc file so that /usr/local/bin gets added to your path at each login.

Corey Quilliam
(former) Administrator

Want to help out Check out our Linuxhelp Wiki and see if there are some articles you would like to submit!!

Ubuntu 8.04 64-bit - Work Laptop (HP-Compaq NC6400 Core2)
Kubuntu 8.04 64-bit - Desktop (HP m8120n QuadCore)
Ubuntu 6.04 - Server (I'm not upgrading this baby until support runs out in 2012) (Some old POS dell)
Go to the top of the page
+Quote Post

Reply to this topicStart new topic
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:


RSS Lo-Fi Version Time is now: 20th June 2018 - 12:36 AM