The ls command is used to list files and directories in the current working directory. Here’s how to use it:
Basic Usage:
- List files and directories:
ls
Common Options:
- List all files, including hidden ones:
ls -a - List with detailed information (permissions, owner, size, etc.):
ls -l - List with human-readable file sizes:
ls -lh - List files sorted by modification time:
ls -lt
Example:
To see all files, including hidden ones, in a detailed format, you can combine options:
ls -la
Feel free to ask if you have more questions or need further clarification!
