ls -l in the shell

¿What happens when you type ls -l in the shell?

Previously I’ve already talk about the command <ls> here. So before start reading this article I recommend you to check that other first.

¿What is a shell?

  • Is a command interpreter in operating system such as Unix or Linux
  • It is a program that executes other programs
  • It provides an interface to the system so the user can run different commands or utilities/tools with some input data.

¿What does the shell do?

  • Wait for the user to type a command
  • Parse the command and saved into a string, then split that string by every argument (called tokens).
  • Executes the matched command or print an error if the input typed is not valid
ls. Listing Files
ls. Listing Files

¡Now you know what happens behind scenes when you type a command. so keep reading and practicing more!

I'm a Software Developer passionate by programming, videogames and music. Nowadays studying at Holberton School