Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

I get this every time I open terminal on my mac after a ruby course:

-bash: xzc: command not found
-bash: z: No such file or directory
-bash: cx: command not found
-bash: zcx: No such file or directory
-bash: zcx: No such file or directory
-bash: cz: command not found

How do I fix it?

share|improve this question
    
Do you have Terminal already open during the course or do you open it after you finished the course? –  patrix Aug 4 '12 at 13:43
    
Are these the actual lines you're seeing? Can you describe exactly what you're doing and what leads to these errors? –  slhck Aug 4 '12 at 14:59
    
They are shown every time I open the terminal app –  Nikolaj Aug 11 '12 at 12:07

1 Answer 1

It looks like you created a shell initialization file with a bunch of gibberish in it (from the keys, it looks like you were trying to type editing commands, and they got inserted as text). The file will be an invisible file in your home folder, with one of the following names: .bash_profile, .bash_login, .profile, or .bashrc. You can list invisible files in your home folder with the command ls -A ~

Fixing the file may be tricky, since there may be things in it that you need to keep as well as gibberish that needs to be deleted. And if you're having trouble editing files, that's just going to add to the confusion...

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.