I think you need to learn about the bash shell, especially startup files. I
suggest that you begin with this from chapter 3 of Beyond LFS:
http://www.linuxfromscratch.org/blfs/view/svn/postlfs/profile.html

There you will find where to put things like environment variables and
aliases. Take it slowly: the examples given are quite sophisticated.

If you still have your host system around, have a look at the versions of
the files supplied by it. When I looked at my host I discovered that halt
and restart were aliases (in /etc/bashrc). So the line alias halt='shutdown
-h now' was in /etc/bashrc.

I slow, methodical trawl through all the Bash files, and a bit of
head-scratching over the difference between login and non-login shells,
will work wonders for your understanding of Linux. You might also find
https://shreevatsa.wordpress.com/2008/03/30/zshbash-startup-files-loading-order-bashrc-zshrc-etc/
useful
- many of my beginning students had the first diagram open most of the day!

Slainte
Gordon
-- 
Gordon Findlay
gordon.find...@gmail.com
Ambition is a poor excuse for not having sense enough to be lazy.


On Sun, Sep 8, 2013 at 12:40 PM, Pwn Me <pwn_m...@yahoo.com> wrote:

> i have a question..
>
>
>
> how can i edit the PATH="tools/bin:/bin:/usr/bin" to
> PATH="tools/bin:/bin:/usr/bin:/tools/sbin:/sbin:/usr/sbin"?
>
> 'coz i tried to use "export" to edit this command and when i reboot the
> system, the "PATH" thing goes back to the original syntax.. :/
>
>   ------------------------------
>  *From:* David Brodie <l...@aba.eclipse.co.uk>
> *To:* Pwn Me <pwn_m...@yahoo.com>; LFS Support List <
> lfs-support@linuxfromscratch.org>
> *Sent:* Saturday, September 7, 2013 7:27 PM
> *Subject:* Re: [lfs-support] ABOUT LFS
>
> On 07/09/13 03:29, Pwn Me wrote:
> > guys i have another question.. i'm done with my LFS 7.3 and it actually
> > works now but some commands like APT, REBOOT, HALT etc. have the same
> > outputs when i typed them:
> >
> > "bash: command not found"
>
> They are privileged programs, which LFS puts on /sbin or /usr/sbin,
> neither of which are on your PATH if you log in as a normal user. You
> need to log in as 'root' to use these commands. And 'apt' is the package
> management tool for Debian, Ubuntu, etc. You won't find it in LFS at
> all, unless you add it yourself.
>
> > also i haven't edited my /etc/sysconfig/clock, /etc/resolv.conf and
> > /etc/hosts..
>
> I think you need to do some basic reading up about Linux and about using
> the standard shell and utilities, before you go much further - there're
> some good references on this page:
>
> http://www.linuxfromscratch.org/lfs/view/stable/prologue/prerequisites.html
>
> David
> --
> http://linuxfromscratch.org/mailman/listinfo/lfs-support
> FAQ: http://www.linuxfromscratch.org/lfs/faq.html
> Unsubscribe: See the above information page
>
>
>
> --
> http://linuxfromscratch.org/mailman/listinfo/lfs-support
> FAQ: http://www.linuxfromscratch.org/lfs/faq.html
> Unsubscribe: See the above information page
>
>
-- 
http://linuxfromscratch.org/mailman/listinfo/lfs-support
FAQ: http://www.linuxfromscratch.org/lfs/faq.html
Unsubscribe: See the above information page

Reply via email to