I don't know what is going on...
d@d-SVF15A17CDB:~/University/CSC209/a1$ gcc -o remvocals remvocals.c
d@d-SVF15A17CDB:~/University/CSC209/a1$ dir
remvocals remvocals.c
d@d-SVF15A17CDB:~/University/CSC209/a1$ remvocals
remvocals: command not found
You need to actually run the file:
Make sure the file is executable (you can learn more about file permissions here). If gcc
succeeds in linking it should already be executable (thanks @steeldriver):
chmod +x remvocals
Execute the file:
./remvocals
PATH
environment variable. I don't think that's what you want though. To see what's on the PATH
use: echo $PATH
.
Jan 28, 2015 at 2:40
chmod +x
the file: it will be executable by default if gcc
successfully links the binary.
Jan 28, 2015 at 2:55