What happens where you type ls -l in a Linux Shell? (Building a simple shell)

Img 1: Typing ls -l in
$
$ ls -l
PATH=/home/vagrant/.vscode-server/bin/db40434f562994116e5b21c24015a2e40b2504e6/bin:/home/vagrant/.vscode-server/bin/db40434f562994116e5b21c24015a2e40b2504e6/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games
Img 2: Graphical System Calls ( taken from geeksforgeeks)
Img 3: Typing ls -l and exit the interactive mode.

Functions and system calls used

GETLINE:

man 3 getline

STRTOK:

man 3 strtok

GETENV:

man 3 getenv

FORK:

man 2 fork

EXECVE:

man 2 execve

WAIT:

man 2 wait

Hi I am a financial engineer, and a software development student in Holberton School!

Love podcasts or audiobooks? Learn on the go with our new app.

Recommended from Medium

Unleash the Microservices

Instead of Going Out, It’s Better To Expand Your Comfort Zone

EKS(Elastic Kubernetes Service)AWS Cloud

How to automatically log in users in with Django

Client Side Rendering (CSR) vs Server Side Rendering (SSR). Which one is the best?

Why the World Would End Without Saved Views

February Monthly Report

Move files between directories using WSO2 Enterprise Integrator

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
Valentina Gómez A.

Valentina Gómez A.

Hi I am a financial engineer, and a software development student in Holberton School!

More from Medium

Why You Should Dump VSCode, Move To NeoVim, And Why You Shouldn’t

Make your console look amazing and use Linux commands on Windows 11 and older

Adding multiple SSH keys on one system

Stupid Bash Tricks: Pretty Path