Â鶹´«Ã½ÉçÇøÈë¿Ú

print friendly version

Questions and answers

232
How do I make a shell file executable?


The command described below needs to be entered while logged in to the Unix server.   Normally you'll see a prompt ending with $ when the command interpreter (or shell) is ready for another command.

Type:

chmod   u+x   filename

(replace filename with the name of the shell file)

The file must of course contain executable code or statements.

Help us to improve this answer

Please suggest an improvement
(login needed, link opens in new window)

Your views are welcome and will help other readers of this page.

Categories

This is question number 232, which appears in the following categories:

Created by Andy Clews on 27 July 2001 and last updated by Andy Clews on 4 August 2015