Annoying terminal problem

Man of Honour
Joined
29 Jun 2004
Posts
21,636
Location
Oxfordshire
Hey guys

I should mention that I'm very new to Linux first off, just using Fedora 8 at the moment

Thing is, I'm trying to teach myself to use the terminal and not be a slave to the GUI. I'm currently looking through a lot of sites online and learning quite quickly.

One site in particular gives reference to all the bash commands and what they do. However, as most seem to work, a lot of them don't work just by typing them in

For example, I'm trying to teach myself some basic administration, adding users, adding policies, groups etc

But, when I use the 'useradd' command, it doesn't work. If I however change directory to /usr/sbin then type './useradd <name>' it works fine. Yet passwd can just be typed on its own

Another example is ifconfig or iwconfig, have to be set to the appropriate directory /sbin

Is there a way to make all these commands available just from the off without having to remember each and every directory for each command. It's worth mentioning I am using root as well so thats not the problem

Cheers guys

P.S - Are there any books out there to teach the basics of sysadmin? Want to learn quite quickly
 
That's great thanks for all your help guys :)

Added the directories to the path in my login and it corrected everything :D

Will look into that book also, cheers for that
 
Back
Top Bottom