Linux: List Files

By Xah Lee. Date: . Last updated: .

List Files

ls
List files in current directory
ls -al
List all files in current dir, including dot files, and also show detail, such as File Permission , owner, and size.
ls -al *word*
List files in current dir whose name contains the word word
ls -al */*word*
List files in subdir whose name contains the word word
ls -al | grep word
list files whose name match regular expression word

Directory and Files