What happens when you type ls *.c

The ls command is one of the most popular commands in Linux. I assume that ls command is the first command you can use when accessing the Linux Box command prompt.

We use ls command on a regular basis and sometimes even though we might not be aware of all the available ls choice and never use it. We’ll explore why and what happens when you type “ls * .c” in this post.

1-Basically ls is a simple command used in Linux to list files and folders. Ls command comes with so many arguments and features as you can sort files and directories by date, height, hidden files and directories, permissions, inode, etc.
2-Now we’ll learn how to use the Linux ls command under LinuxAs you can see, we ‘re just putting “ls” in the terminal, it lists all the files and directories you ‘re on in the current directory.

Now with “Wildcard,” we ‘re going to make your life easier.

Wildcard (also called the meta characters) are icons or special characters representing other characters. You can use them with any command like ls to list files that fit a given one Criteria, to be responsive.

*An asterisk (*) — fits any character,

including no character, to one or more occurrences.

*Question mark?)-represents (or matches any

character with a single event.

*Bracket characters])-suits ([any character

event in the square brackets.

Various types of characters (alphanumeric characters) can

be used: numbers, letters, other special charactersFigures


For instance now we’ll list all the files

and directories in the current directory starting with “f”