Image source: https://unsplash.com/photos/oZ61KFUQsus

What happens when you type ls -l in the shell

First, we need to know what an environment variable is. In linux, these are simple ways to share configuration settings between multiple applications and processes. For our case with using ls, we only need the PATH variable. You can print this by greping PATH from env to see what is in it.

Greping PATH from env
Showing type of ls
Executing “ls -l”

Software Engineer living in Tokyo | Linux | Cats | https://github.com/kai-dg | https://haruspace.dev | https://ko-fi.com/harukai

Software Engineer living in Tokyo | Linux | Cats | https://github.com/kai-dg | https://haruspace.dev | https://ko-fi.com/harukai