Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations biv343 on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Problem with alias in .bashrc 2

Status
Not open for further replies.

farley99

MIS
Feb 12, 2003
413
US
In .bashrc I have..
alias ll='ls -alh'

but when I type ll
ny:~$ ll
-sh: ll: command not found

It doesnt work, got any tips?
 
did you 'source' your .bashrc PRIOR to executing a new alias?


vlad
+----------------------------+
| #include<disclaimer.h> |
+----------------------------+
 
It sounds like you are running Bourne shell judging by the &quot;-sh&quot; in the error message.

Bourne shell does not use .bashrc. You probably just need to have your default shell changed to /bin/bash.

Annihilannic.
 
Whats the easiest way to set
/bin/bash
as my shell in .profile?
 
Amend your /etc/passwd file.
The last field is the login shell.

Hope This Help
PH.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top