What happens when you type ls *.c in shell prompt?

When you use ls command alone, it will list every file in the current directory.
If you type ls * you will have the same result as only ls, because is excludes nothing.
If you type ls .c it will show an error, if you include * it will show only .c files in the current dir.




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

Recommended from Medium

Create a component — Cake.JS

Make your first Chrome Extension

Noob’s intro to Algorithms 101

How to Create 3D Text in React Three Fiber

Decentralized Webpack Configuration

Make a dash-ing project — 2

Angular Platforms in depth. Part 1. What are Angular Platforms?

Angular — do you know what it is?

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
Atenea Castillo

Atenea Castillo

More from Medium

Reflections on Honor — Winter 2022

DC Latino Caucus Questionnaire — English

What is Test-Driven Development (TDD) 2022

The backstage of Assignment 2