LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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 11-04-2010, 11:09 AM   #1
tarken
Member
 
Registered: Jan 2010
Location: Portland
Distribution: Xubuntu
Posts: 68

Rep: Reputation: 16
CentOS Utilities


Hey Folks -

I just switched to CentOS for my server from Ubuntu server and I am having some frustration. How do I change the fact that whenever I want to run a utility I have to use the absolute path. For example: /sbin/ifconfig intead of ifconfig

or /usr/sbin/useradd instead of useradd

Is there a way to change this?

Tarken
 
Old 11-04-2010, 11:22 AM   #2
snowpine
Senior Member
 
Registered: Feb 2009
Posts: 4,191

Rep: Reputation: 1178Reputation: 1178Reputation: 1178Reputation: 1178Reputation: 1178Reputation: 1178Reputation: 1178Reputation: 1178Reputation: 1178
Check your $PATH to make sure it includes those folders.

Also make sure you use 'su -' instead of 'su' to get root.

Try this little exercise:

Code:
su
$PATH
exit
su -
$PATH

Last edited by snowpine; 11-04-2010 at 11:24 AM.
 
  


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
utilities sam23 Linux - Newbie 9 09-11-2008 11:46 PM
Compression Utilities NightKids Linux - Newbie 3 06-04-2005 12:06 PM
Best Utilities antidelldude Linux - Newbie 3 01-12-2005 05:32 PM
Are there utilities to do this? jbrush Linux - Newbie 2 12-06-2004 12:00 PM
LM utilities maddog Linux - Hardware 3 07-19-2002 03:04 PM


All times are GMT -5. The time now is 04:13 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration