I am trying to compile code using gcc and run the executable, but it is throwing error:
gcc somefile.c -o somefile
compilation goes through su
To execute file you just have to do
$./somefile
sh is used when you've to execute a shell script
sh