How do you make a file executable in Ubuntu?

20 December 2022

How do you make a file executable in Ubuntu?

Posted in Maintenance

An executable file's user rights must be correctly specified in order for it to run.

To achieve this, take the following actions:

Start a terminal.

Navigate to the folder containing the executable file.

Enter the command as follows:

for any . bin file: sudo chmod +x filename.bin

for any .run file: sudo chmod +x filename.run

Enter the necessary password when prompted to do so.

Now the current user with root access can execute the file.

 

Comments (0)

Leave a comment

Please login to leave a comment.