Share with your friends

If that's a program that someone else wrote, you can usually run "sudo make install" to install it, and then it will be possible to just type the program name. If it is a script that you wrote yourself, do the following: Add the line "#!/bin/bash" (without the quotation marks) to the beginning of the script file. Rename the file to not have ".sh" at the end, for example "test.sh" to just "test". Finally, move your file to the "/usr/bin" directory. Then, you can just type the word (in this example, "test") to execute the script. Also, when working from the Linux bash shell, you don't need to type the " | bash test.sh" part, you can just write "./test.sh".

Talk Doctor Online in Bissoy App