Re: Commands in /sbin Directory Not Found
- From: Ivan Marsh <annoyed@xxxxxxx>
- Date: Tue, 31 Jan 2006 10:42:05 -0600
On Tue, 31 Jan 2006 08:36:14 -0800, baldiwn wrote:
> Hi,
>
> After installing Fedora Core 4, I can' t execute commands in the /sbin
> directory, e.g ifconfig, lsmod, etc. I tried logging as super user and
> changed the path as :
> su
> cd /sbin
> ifconfig
>
> but it still say command not found. Did I miss something?
Yes. Your current directory isn't in your path. So in the /sbin directory
you'd have to type ./<command> or you can use the full path
/sbin/<command>.
If you want to have root's path while using su, type su - , that will give
you a root session with root's environment including /sbin in the path.
--
The USA Patriot Act is the most unpatriotic act in American history.
.
- References:
- Commands in /sbin Directory Not Found
- From: baldiwn
- Commands in /sbin Directory Not Found
- Prev by Date: Re: Commands in /sbin Directory Not Found
- Previous by thread: Re: Commands in /sbin Directory Not Found
- Index(es):
Relevant Pages
|