Saturday, May 18, 2024
3
rated 0 times [  3] [ 0]  / answers: 1 / hits: 15099  / 2 Years ago, mon, february 14, 2022, 11:54:42

How could I execute a program which I downloaded from website and able to execute from $HOME directory or anywhere in terminal?



Thanks,
Peace


More From » startup-applications

 Answers
3

Lets say the command you have to run to execute the program is ./path/to/file and programs name is xyz



So create a .bash_aliases file in your home directory.
Add the line to the file create a alias for the command.



alias xyz="./path/to/file"


Save the file and restart terminal.



Next time you can run the program by typing just xyz


[#26196] Tuesday, February 15, 2022, 2 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
cupwire

Total Points: 365
Total Questions: 126
Total Answers: 125

Location: Malaysia
Member since Thu, Feb 16, 2023
1 Year ago
;