Ubuntu Forums Archive Viewer

Command to "Allow executing file as program"

Archived thread 1360065 from Development CD/DVD Image Testing. Markdown source: Development_CDDVD_Image_Testing/thread_1360065_Command_to_"Allow_executing_file_as_program&q.md

Original URL About this archive
#1

Hello, I was wondering if there was a command to change the permissions of a file to "Allow executing file as program." I understand that you can do this with the gui, the reason I want to do it through a command is so I can incorporate it into a .sh file.

Thanks, Lexen

#2

lexen said: Hello, I was wondering if there was a command to change the permissions of a file to "Allow executing file as program." I understand that you can do this with the gui, the reason I want to do it through a command is so I can incorporate it into a .sh file.

Thanks, Lexen

Use the "chmod" command - "man chmod" in a terminal window for the full syntax, but "chmod +x {file}" will give you execute permission.

Lloyd B.