D
D
Danil Tunev2022-04-09 18:57:15
linux
Danil Tunev, 2022-04-09 18:57:15

How to create synonyms in gnome?

Hello! In general, I created an attachment, its path is /home/user/app, how to turn it into an app? Those. do not enter the full path in the terminal.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
N
Nikita, 2022-04-09
@lada-guy

The question is not entirely clear. Is it necessary that when typing app into the terminal , the file at the path /home/user/app is launched ? If so, then it is enough to add the following to the /home/user/.bashrc file: Most likely, you will need to restart the terminal. There is also an alternative solution. If you plan to throw many applications into the home directory, and not just one, then add the following to the same .bashrc : After that, all programs from the home directory can be launched by name. You will also most likely need to restart the terminal.
alias app='/home/user/app'
export PATH=$PATH:/home/user

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question