Latest LQ Deal: Linux Power User Bundle
Go Back > Forums > Linux Forums > Linux - Distributions > Fedora
User Name
Fedora This forum is for the discussion of the Fedora Project.


  Search this Thread
Old 12-23-2005, 09:25 PM   #1
Registered: Apr 2003
Posts: 152

Rep: Reputation: 15
Set the path for shell commands???

I have to type:/sbin/ifconfig or /sbin/modprobe.
plus other commands as well.
How do I set the PATH??
using FC4
Old 12-23-2005, 10:16 PM   #2
LQ Guru
Registered: Jan 2003
Location: Seymour, Indiana
Distribution: Distribution: RHEL 5 with Pieces of this and that. Kernel, KDE 3.5.8 and KDE 4.0 beta, Plu
Posts: 5,700

Rep: Reputation: 62
edit your users ~/.bashrc
add the line:
export PATH=$PATH:/sbin

save and exit. Logout and login back in or run the command ' source .bashrc ' with logging out.

Hope this helps
Old 12-23-2005, 11:23 PM   #3
Registered: Apr 2003
Posts: 152

Original Poster
Rep: Reputation: 15
Thanks, will try........


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
Linux programs(commands) path sureshkellemane Linux - Newbie 6 03-29-2005 02:15 AM
Executing commands without using the full path.. LinuxBAH *BSD 2 12-02-2003 07:16 PM
shell commands! krishlinux General 1 10-05-2003 04:47 AM
PHP to run Shell commands Gear_freak2000 Linux - Software 4 06-04-2003 05:39 AM
Need help with path commands Linux - General 7 06-27-2001 05:21 PM > Forums > Linux Forums > Linux - Distributions > Fedora

All times are GMT -5. The time now is 04:37 AM.

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