To list files in a directory, you can use the ls command in the terminal. Here are some common usages:
Basic listing:
lsList with detailed information:
ls -lList all files, including hidden files:
ls -aList 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.
