Forum Moderators: phranque

Message Too Old, No Replies

How to create a command-line alias?

Putting it into <.alias> and <.bash_profile> didn't work

         

MichaelBluejay

10:26 pm on May 7, 2004 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



I put this into both the <.alias> file and the <.bash_profile> file:

alias twe 'tail -f /home/visitus/logs/visitushere.com/http/error.log'

But when I type twe in the command line the server says:

bash: twe: command not found

My webhost referred me to the bash documentation. I couldn't find anything relevant there.

Any ideas? Thanks for your help, -MBJ-

uncle_bob

11:25 pm on May 7, 2004 (gmt 0)

10+ Year Member



Are you sure you have the syntax correct. I thought it should be

alias twe='tail -f /home/visitus/logs/visitushere.com/http/error.log'

Have you tried just setting the alias up on the command line first to see if it works? If you just type alias it should list all of the aliases currently set up and show you if it worked.