MRC/Tutorials/Setting up your project: Difference between revisions

From Control Systems Technology Group
Jump to navigation Jump to search
(Created page with 'Of course, we not only want to use software during this course, but we want to create some! Let's create a workspace directory in which we will put this code: <pre>mkdir ~/emc</…')
 
No edit summary
Line 11: Line 11:
Often, the code files are not put directly in the root of a folder, but in a directory called ''src''. This stands for ''source'', and is called this way because the files in there are the source of the compilation process, and are converted into ''binaries'' (files that are no longer human-readable, but are understandable for the machine). So, let's go. Remember that when using ''cd'' (and many other commands in linux) you can use ''tab-completion'' to type quicker, ''i.e'', try:
Often, the code files are not put directly in the root of a folder, but in a directory called ''src''. This stands for ''source'', and is called this way because the files in there are the source of the compilation process, and are converted into ''binaries'' (files that are no longer human-readable, but are understandable for the machine). So, let's go. Remember that when using ''cd'' (and many other commands in linux) you can use ''tab-completion'' to type quicker, ''i.e'', try:


<pre>cd a<<< now push the TAB key >>><pre>
<pre>cd a<<< now push the TAB key >>></pre>


You will see that the terminal fills out the rest, because ''awesome_project'' is the only directory in the current directory that starts with an ''a''. Ok, create the ''src'' directory, and go inside:
You will see that the terminal fills out the rest, because ''awesome_project'' is the only directory in the current directory that starts with an ''a''. Ok, create the ''src'' directory, and go inside:

Revision as of 21:50, 28 April 2015

Of course, we not only want to use software during this course, but we want to create some! Let's create a workspace directory in which we will put this code:

mkdir ~/emc

Let's start off with a simple example project. Go inside the ~/emc directory, and create a new folder with the name awesome_project:

cd ~/emc
mkdir awesome_project

Often, the code files are not put directly in the root of a folder, but in a directory called src. This stands for source, and is called this way because the files in there are the source of the compilation process, and are converted into binaries (files that are no longer human-readable, but are understandable for the machine). So, let's go. Remember that when using cd (and many other commands in linux) you can use tab-completion to type quicker, i.e, try:

cd a<<< now push the TAB key >>>

You will see that the terminal fills out the rest, because awesome_project is the only directory in the current directory that starts with an a. Ok, create the src directory, and go inside:

mkdir src
cd src