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 want to use awk command to do something, I input awk in terminal, but the terminal show me that

awk: cannot open /home/user/myexe/external_symbols.awk (No such file or directory)

Someone tell to make an alias in your shell,but I would not ..,can someone help me..

Then I try to input :which -a awk

terminal show :/usr/bin/awk

input: type awk

terminal show: awk is aliased to 'awk -f /home/user/myexe/external_symbols.awk' How can i change the aliase which path?

share|improve this question

1 Answer 1

up vote 2 down vote accepted

Type unalias awk at the command line to remove the alias.

share|improve this answer
1  
As said, unalias awk will work in the current terminal. Also check your ~/.bashrc file. Look for a line that sets the awk alias. You can remove that line. –  Matt Jan 21 '13 at 2:05
    
@Jake223 I remove the alias,then do I need to set something or without ? –  choujayyl Jan 21 '13 at 2:43
    
I don't understand your question. If you're asking about what Matt said, bring up a file called /home/yourusername/.bashrc in your favorite text editor and look for a line that stars with alias awk=.... delete that line. –  Jakob Weisblat Jan 21 '13 at 2:49
    
@Jake223 It work,but I don't understand why have to delete the alias of awk?Is it awk can't use alias? –  choujayyl Jan 21 '13 at 3:50
    
awk is a program you want to run, but when you type awk at the prompt, it looks first for aliases and then at programs that could be executed. So if there is an alias in place, it will prevent you from running the program. –  Jakob Weisblat Jan 21 '13 at 4:04

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.