I have a file called fsm.c and with the command gcc fsm.c -o fsm I have a new file called fsm. I want to execute the particular file wherever I am while using the terminal.
I tried to move it in the /usr/local/gcc directory but gcc crashed and I had to reinstall it.