Alternative to 'ls' commnand

Posted on 22 July, 2020

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

Last updated