The ls Command
2 min readFeb 3, 2020
On the systems Unix-like the ls command is one of the most used and useful, this command is used to list directory contents.
Options And Arguments
The ls command has a large number of possible options. The most common are listed here:
But one of the most interesting options of this command is: *. this option show all files that have this extencion, for example, ‘*.txt’ show all the text files that you have in the current folder, another example, ‘ls *.c’ show all files whit a ‘.c’ extencion.
Other uses for the ls command
We can add -l that show the long format, like this:
We can make many different combinations with the options of the ls command.