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

Generally:

What really happens ?

The getline() Function:

getline(&buffer,&size,stdin);

Parsing The User Input:

ls -la /
$  ls       -la      /
[ls][-la][/]

Execution:

$> echo $PATH
/bin:/usr/bin:/usr/local/bin

--

--

--

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

Recommended from Medium

Beyond Awesome Lists

Windows Embedded Compact Exploit Development: Modern Exploitation

Behavioral Patterns — overview

The one with the ChatBot (Part-1: using Api.ai, FB messenger)

How and why should you hide Promoted Jobs in Linkedin?

Why overflow is perhaps the most important property for CSS animation (part 1)?

Deploy a Predictive Model with Flask

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
Abderrahmen Babchia

Abderrahmen Babchia

More from Medium

Semiconductor Shortage: Your Network Is Calling For A Multi-Vendor Strategy

Switch

C# Task Cancellation with Blocking Method Call

The Joys of Cycling

Bicycle pedal