Wednesday, May 1, 2024
 Popular · Latest · Hot · Upcoming
7
rated 0 times [  7] [ 0]  / answers: 1 / hits: 32410  / 3 Years ago, sat, may 1, 2021, 1:51:02

I need to know how to mark a file as executable but the check box is not there.


More From » xubuntu

 Answers
2

  1. Press Ctrl+Alt+T to open a terminal.

  2. Navigate to the location of your file by inputting cd command into the terminal
    Eg. cd /documents/, then enter the following:



    chmod +x yourfilename



To view if your changes had been saved enter the following ls -l in the terminal.



Other way to change your file to an executable is to right click the file, select PropertiesPermisions and tick Allow execution of the file as a program.



Hope this helps. Also to execute the file you first have to be in the directory where it is located. For instance if your file is located in the Documents folder, you have to cd ("change directory") in to that directory and then do this: ./yourfile.c



This is how it will look:



root@root:~/Documents$ ./file.c

[#29375] Sunday, May 2, 2021, 3 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
tionverflow

Total Points: 500
Total Questions: 115
Total Answers: 120

Location: Northern Ireland
Member since Mon, Nov 14, 2022
1 Year ago
;