Executable files

ChristopherHaamann

New Member
Joined
Jun 6, 2019
Messages
1
Reaction score
0
Credits
0
Hey there! I am relatively new to Linux! I have a question about system wide executable files. I just downloaded and compiled the godot game engine and now I'm wondering why i cant just type in "godot" and it opens. Maybe someone can explain this?
But okay, I just created a file named "godot" and moved it into /bin. (All it contains is the filepath to the executable godot file). But I am convined, that that isn't a clean solution! Can someone help?
Greetings! :)
 


Drag and drop the file in your terminal and hit enter.
have you maid the file executable?
If not
Code:
sudo chmod +x "/path/to/file"
 
Here's a tutorial on chmod:

Also, your question also has to do with paths.. the executable file needs to be in your $PATH unless you're typing out the whole path name. THat's why it'll work when it's in /bin/, but not in /random/file/path/.

To see your path, you can echo $PATH. Anything in one of those directories will work by just typing the filename (as long as it is executable).
 


Top