Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.
running .bashrc
Name: iraja Date: February 24, 2002 at 21:27:32 Pacific
Comment:
Hi everyone, i have problems with .bashrc. Following is the file
#! /bin/bash alias l='ls -asl' echo " hello world"
and it is not working...when i run ./.bashrc it does echoes hello world. but when i tye l it say bash:command not found. well i have tried everything being a root, changing permissions etc etc..nothing seems to be working. Can anyone help me out.
Name: hena Date: February 25, 2002 at 02:39:23 Pacific
Reply:
Remove the first line "#!/bin/bash" from the .bashrc file. That makes it to be a script file which works only when it is run. The ~/.bashrc is not a script file but a config file for bash.
0
Response Number 2
Name: iraja Date: February 25, 2002 at 04:39:42 Pacific
Reply:
thanx hena, i have tried that as well. giving at the first line # alias l='ls -asl' doesn't worked
0
Response Number 3
Name: hena Date: February 25, 2002 at 04:59:04 Pacific
Reply:
The first line don't need to have anything. Anything after # is considered as comment (few exceptions to this eq. #! which is a script file).
Did you relog after changes? You need to log in to make the changes to be activated. It is read every time you log in. Alternativaly you can give command "source .bashrc", which will reload the whole file (man source).
Summary: Sounds like you don't have java on your path so you can't run it!!! Do you know where you installed java and if not, run this to find where it is, find / -name java -print And add the complete path t...
Summary: Odd it works for me :) Lets try permissions on the binary files first. I'll assume that you've installed the browsers from the Mandrake distribution so Mozilla is launched with mozilla and that Firefo...
Summary: find would work....providing that you can find the binary location as you can't run any commands! Most executables are stored in: /bin - basic commands like "ls" /sbin - basic admin commands li...