Sunday, May 19, 2024
 Popular · Latest · Hot · Upcoming
0
rated 0 times [  0] [ 0]  / answers: 1 / hits: 705  / 2 Years ago, fri, december 17, 2021, 12:13:16

When I type program A in the terminal, I end up getting program B. Where are the aliases or other file that controls which commands trigger program opening?


More From » remapping

 Answers
2

Aliases to commands are stored in ~/.bashrc and /.bash_aliases. However, these may not always be the cause of the redirect. If the alias is not, then you can find out what path the terminal is following by typing type <command>. The type command will tell you where the file is that the terminal is executing and whether it is hashed to another executable elsewhere on the filesystem. In order to find out what file the link is to in that case, cd into that directory and type ls -l <file>.


[#24471] Friday, December 17, 2021, 2 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
giccolla

Total Points: 161
Total Questions: 124
Total Answers: 117

Location: Aland Islands
Member since Wed, Nov 17, 2021
3 Years ago
;