So Linux is an Operating System, same as Microsoft. The main difference is that Linux is for free xD. And that with Linux we don’t have as much restrictions as with Microsoft. And just like the windows command prompt, Linux also has one, also known as terminal or shell.
So when you open either cmd (for Microsoft)or terminal (for Linux), the prompt is gonna be displayed waiting for the command to execute it! …
Do you know the shorcuts of microsoft and the security backups? Alright.. This is pretty much like that. So let’s explain it this way:
First we should know what does every file in Linux contains, and this is the inode. So let’s take a look to what an inode is:
Inode: The inode of a file is like an ID for each file, and as an ID contains a lot of information of ourselves, so does the inodes. Here are some things that an inode contains:
Alright.. Before you pass this point, make sure that you understand the following definitions:
If you don’t know them, don’t worry, I’ll try to explain them as easy as possible just for you to be able to understand. So let’s start!
What does the ‘ls’ command do?
Simple.. It prints all the files and directories that are contained in a directory. Let’s take a look of it:
The static libraries are used for the reason of use fuctions that we have already written somewhere in the past, so we can recycle already written code, either by us or whoever else, and be more efficient because we will just write a function once and then we can call it when we compile the program with the library where the function is saved.
You should use the static libraries only if you want to make the compilation time go faster without caring about memory…
What happens when we compile a high-level programming language?
We can see in the image above that the C compiling process is composed by four essential steps, which are:
So when we compile any C file, the compiler makes all that process and at the end of that task, we get an executable program that our OS can read. So let’s start from the beginning.
Well, to start compiling any programming language, the first thing you need is…