Alternative to 'ls' commnand

January 18, 2025 ยท View on GitHub

the bash builtin echo can be used to list contents of a directory.

echo *

List all files that start with letter 'i'.

echo i*

How

The character * serves as a "wild card" for filename expansion in globbing. By itself, it matches every filename in a given directory.

Resource