You need to use chmod command which is use to change file access permissions as well as to setup an executable permission on file.
General syntax:
chmod +x file-name
For example to setup executable permission on a file called foo.sh (shell script):
$ chmod +x foo.sh
To execute file:
$ ./foo.sh
To setup executable permission on a binary file called bar:
$ chmod +x bar
To execute binary file:
$ ./bar
See also:
Featured Articles:
- 20 Linux System Monitoring Tools Every SysAdmin Should Know
- 20 Linux Server Hardening Security Tips
- My 10 UNIX Command Line Mistakes
- Linux: 20 Iptables Examples For New SysAdmins

- 25 PHP Security Best Practices For Sys Admins
- The Novice Guide To Buying A Linux Laptop
- 10 Greatest Open Source Software Of 2009
- Top 5 Email Client For Linux, Mac OS X, and Windows Users
- Top 20 OpenSSH Server Best Security Practices
- Top 10 Open Source Web-Based Project Management Software
- Top 5 Linux Video Editor Software
Facebook it - Tweet it - Print it -
