Examples of Command Line Characters "*" and "?"

# List all files with a .txt extension

ls *.txt

# List all files that have “lab” as part of their file name

ls *lab*

# List all files that begin with “file” then one character with a “.txt” extension

ls file?.txt

# List all files that start with two characters followed by test.txt

ls ??test.txt

Engineering Network Services home page link College of Engineering home page link