User forums > General (but related to Code::Blocks)

Where is output file in codeblocks ?

<< < (2/2)

ouch:
I know in ubuntu you can right click on the file and there is a run in terminal option. You might want to check if your linux distribution has something like that.

vikash:

--- Quote from: jens on July 12, 2011, 08:07:10 pm ---Normally linux does not automatically open a console, so:

--- Quote from: jens on July 12, 2011, 06:27:40 pm ---cd to the folder, where it is located and start it with ./exename

--- End quote ---


--- End quote ---
what are saying i did not understand.  :?

Freem:
He just said, open a console, then go to the directory where your executable file should be, then run it.

--- Code: ---cd
--- End code ---
mean change directory and is the name of the command which allow this.

--- Code: ---./exefile
--- End code ---
mean that you'll need to tell the system that the file you want to run is the one in the "." directory, so the directory where you are actually.

By example, if your project is directly in your home directory, just type

--- Code: ---cd ~/project_folder/bin/debug/
./exefile

--- End code ---
. (The ~ is a shortcut to your home directory.)

Navigation

[0] Message Index

[*] Previous page

Go to full version