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

What is the shell anyway?

Why on Earth do I need a command-line interface?

Okay, you’ve convinced me. So how it actually works?

bash: 1792 lines of code in the shell.c only
shell.c
signal(SIGINT, sig_handler);
The simple shell prompt

The Path Resolver

The Process Handler

--

--

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