LinuxQuestions.org
Review your favorite Linux distribution.
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 12-04-2001, 10:51 AM   #1
phil1076
Member
 
Registered: Oct 2001
Location: Grand Cayman
Distribution: RH 9.0
Posts: 96

Rep: Reputation: 16
Quick newbie question about pico


I've setup a barebones linux firewall and it works great. One thing I need to install, however, is the pico text editor (vi just doesn't cut it). I have the 32-bit ELF executable in my root directory and I have chmod 755 permissions on it (root full access, everyone else read and execute). Now, in order to execute the pico program, I have to type "./pico", as opposed to simply "pico". I'd like to know:

(1) How can I move this file to another directory and add a path to it?..and

(2) How can I make it so that I type just "pico" instead of "./pico" to invoke it?

Thanks in advance
 
Old 12-04-2001, 11:51 AM   #2
dorward
Member
 
Registered: Sep 2001
Distribution: Gentoo
Posts: 760

Rep: Reputation: 31
mv pico /path/where/you/want/it

You either need to specify a path or have it in your $PATH.

So if you move it to /usr/local/bin you should get it in your $PATH and not need the full path.
 
Old 12-04-2001, 12:32 PM   #3
phil1076
Member
 
Registered: Oct 2001
Location: Grand Cayman
Distribution: RH 9.0
Posts: 96

Original Poster
Rep: Reputation: 16
I have since solved both problems by simply moving the file to /sbin/. How would I set the path if I wanted it in, say, /custom/stuff/?
 
Old 12-04-2001, 03:35 PM   #4
dorward
Member
 
Registered: Sep 2001
Distribution: Gentoo
Posts: 760

Rep: Reputation: 31
Don't put it in /sbin, that is for system tools, editors don't count!

How you change the PATH depends on your shell, in bash:

export PATH=$PATH:/custom/stuff
 
  


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
I'm a SUSE newbie, fresh from Debian-based distros. A quick question... Eerath SUSE / openSUSE 1 10-15-2005 07:14 AM
Very Easy Quick Question From an Newbie. Anthony1uk Linux - Newbie 2 06-08-2005 01:34 PM
Quick Question (even a Linux Newbie can help me!) perry Mandriva 5 07-21-2004 12:17 PM
A few quick newbie questions... lazlow69 Slackware 5 04-24-2004 10:36 PM
Quick simple newbie question: finding my ip...how? rivethead Linux - Networking 5 01-12-2003 12:32 PM


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