Sunday, May 5, 2024
58
rated 0 times [  58] [ 0]  / answers: 1 / hits: 100191  / 1 Year ago, sun, may 14, 2023, 4:26:34

By typing a manually specified command in terminal I want to execute some other command.



How could add an alias to a command? Can i do that with the help of the terminal or should I edit some kind of file?


More From » command-line

 Answers
0
alias new_name='old command'


To create a permanent alias you have to edit the .bashrc file in your home directory.



More info here



More .bashrc files here


[#37363] Monday, May 15, 2023, 1 Year  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
eighethod

Total Points: 358
Total Questions: 112
Total Answers: 119

Location: Cayman Islands
Member since Fri, Mar 4, 2022
2 Years ago
;