|
bash programming/thanks bdl
bdl ,i have tried doing what you showed me.
i have been half way succesful at it.
but if i may explain what i'm trying to do.
i'm learning from a book name Redhat linux 7.2 unleashed.
on page 595 of that book is there a sample program.
#! /bin/sh
alias ll='ls -l'
alias dir='ls'
alias copy='cp
i saved this file as myenv.
and then i enter the command # chmod +x myenv.
after that i enter the command
export PATH="$PATH:$HOME/bin"
after all this i enter, as instructed in the book, myenv as a command .
i got an error message stating that command not found.
Can you explain to me what i'm doing wrong or missing?
your help is greatly appreciated.
|