Linux Ask!

Linux Ask! is a Q & A web site specific for Linux related questions. Questions are collected, answered and audited by experienced Linux users.

Mar 152010

How to execute prorgam in the current directory


1. Make sure the program is executable

# chmod a+x my_program

2. Run it by appending ./ in the front of file name

# ./my_program

./ is needed if the current directory is not in your current search path (PATH)

 Leave a Reply



You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>