Nils Kassube kassube at gmx.net
Sun Sep 2 07:15:22 UTC 2007

Christian Leng wrote:
> in console, typing
> $ ./eg
> will run it.
> you can change the user limits first
> $ sudo chmod u+x eg

If you compile a program, it IS executable for the user who compiled it. 
Furthermore you don't need sudo to make a file executable if it is owned 
by yourself. Please don't use sudo if it isn't needed.

> then you can just type
> $ eg
> to run it.

That doesn't work because the current directory usually is not in your 
$PATH -- you should use ./eg anyway.


More information about the ubuntu-users mailing list