simple.shell ls -t

Daniel felipe Escobar chavez
2 min readNov 27, 2020

--

The ls command allows us to view the folders and files contained in the directory in

which we are currently located, however, we can see more characteristics of the

content of that folder by adding the -l argument that allows us to see things like:

ls -l

- User permissions with the file

- The owner of the file

- Size in bytes

- Date of last modification

- File name

But what happens at the operating system level when we write this command?

Since we are working on a shell or command line, it will interpret the command so

that it can be executed by the operating system. Initially, the interpreter reads the

command, obtaining the input that the user has made.

Once the command is identified, the current process is duplicated and the copy is

assigned the new execution or a new process image.

Having this new process, you must access the binaries that contain the rules for

the execution of the command in this case /bin/ls.

./bin

The bin folder contains the essential programs of the operating system, and

commonly used commands such as ls.

Here you have a diagram that explains in a graphic way the command execution:

Sign up to discover human stories that deepen your understanding of the world.

Free

Distraction-free reading. No ads.

Organize your knowledge with lists and highlights.

Tell your story. Find your audience.

Membership

Read member-only stories

Support writers you read most

Earn money for your writing

Listen to audio narrations

Read offline with the Medium app

--

--

No responses yet