ls -a command in Linux

ls -a option lists all files and directories in the current directory, including hidden files starting with “.”

Syntax

$ ls -a [options] [file|dir]

Examples

In the following example, we use the ls -a option to list files and directories, including hidden files starting with “.”.

➜  ~ ls -a

In the following example, we use the ls -al option to display files and directories in a long list format, including hidden files starting with “.”.

➜  ~ ls -al

Add a Comment

Your email address will not be published.