Ask Your Question

Using Fedora 16 don't see .bashrc I do see bashrc are they the same?

asked 2012-04-11 10:05:52 -0500

bofdelivery gravatar image

I created an alaises in bashrc but I don't know if it worked because the screen cleared but gave me an error: : command not found... Failed to search for file: Invalid input passed to daemon: char '[' in text!

However when I scroll up I can see the old screen that cleared. I don't think it should be able to do that. I think something is not right.

here is the alaises: CLEAR=clear export CLEAR

I put in bashrc but should I have put in .bashrc (there is no .bashrc) so I put in bashrc.

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted

answered 2012-04-11 11:08:56 -0500

ztank1013 gravatar image

updated 2012-04-11 11:28:40 -0500

Please run

locate bashrc

command from a terminal. You should see all the locations where the bashrc and .bashrc files are.

This is what I see in my f16 laptop:

$ locate bashrc

Then see my comment at your question above and let's see what we can do to fix your error. I am afraid, from the error message you reported, that there might be a typo or a syntax error in your alias.

From what I see until now the error is in the way you wrote the alias. Aliases in bash MUST start with the alias keyword.

If you run the command alias from a terminal you will see the default aliases already present in your system. You colud try to use one of them as a template to build your own alias.

$ alias
alias egrep='egrep --color=auto'
alias fgrep='fgrep --color=auto'
alias grep='grep --color=auto'
alias l.='ls -d .* --color=auto'
alias ll='ls -l --color=auto'
alias ls='ls --color=auto'
alias which='alias | /usr/bin/which --tty-only --read-alias --show-dot --show-tilde'

But what is also missing in your question at the moment is what exactly you would like to do typing CLEAR. Probably clearing the screen and what else?

edit flag offensive delete link more

Question Tools


Asked: 2012-04-11 10:05:52 -0500

Seen: 9,189 times

Last updated: Apr 11 '12