Last Updated: September 12, 2021
· fitonface

How do I get list files using LS with no option?

The most basic list (ls) command is without the use of options. It prints out files and directories in their basic format. With ls command, you will not be able to see file types, dates, and permissions.

To execute list command, type ls in the terminal window and then press Enter.

The additional options with few examples below give users more flexibility when using the ls command:

ls -F: This adds “/” at the end of each directory.
ls -m: The terminal prints out directories and files separated by a comma
ls -Q: Add quotation marks to all directories
ls -i: To get the index node number of all directories