G
G
German2019-03-07 15:12:15
linux
German, 2019-03-07 15:12:15

How to create a symbolic link to a file in /bin/ in order to run as a line without ./?

There is a directory with the utility, in this directory there are still a lot of files that are required for its operation.
Now, in order to run it, I need to go to a folder and write ./prog . I need to be able to just write prog in the terminal from any directory and have the program run.

Answer the question

In order to leave comments, you need to log in

2 answer(s)
D
Denis, 2019-03-07
@notwrite

Add a directory to the path and happiness will come to you

V
Victor Taran, 2019-03-13
@shambler81

maybe we won't invent the wheel?
https://ru.wikipedia.org/wiki/Alias_(bash)

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question