To list files in a directory, you can use the ls command in the terminal. Here are some common usages:
-
Basic listing:
ls -
List with detailed information:
ls -l -
List all files, including hidden files:
ls -a -
List files with human-readable sizes:
ls -lh
You can combine options as well, for example:
ls -la
This will list all files, including hidden ones, with detailed information.
