img source: https://ubunlog.com/introduciendonos-en-la-terminal-comandos-basicos/

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! …


Image source: https://www.youtube.com/watch?v=lW_V8oFxQgA

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:

  • Inode number
  • File size
  • Owner information
  • Permissions
  • File type
  • Number of links
  • Among others..


image source: https://www.geeksforgeeks.org/practical-applications-ls-command-linux/

Alright.. Before you pass this point, make sure that you understand the following definitions:

  • Shell
  • Unix-like commands
  • Wildcards
  • Shell variables
  • Alias

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:


Index

  • Why use libraries
  • How they work
  • How to create them
  • How to use them

Why use libraries?

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.

When should we use the static libraries?

You should use the static libraries only if you want to make the compilation time go faster without caring about memory…


In this post you will see:

  • How to compile a C file with GCC Compiler
  • How is the compiling process of any C file

What happens when we compile a high-level programming language?

source: https://www.youtube.com/watch?v=VDslRumKvRA

We can see in the image above that the C compiling process is composed by four essential steps, which are:

  1. Preprocessor
  2. Compiler
  3. Assembler
  4. Linker

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.

How to compile a C File?

Well, to start compiling any programming language, the first thing you need is…

Santiago Zapata Bedoya

I'm a Full-Stack Developing student

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store