Here are some common ls command options you can use:
-
ls -l: Lists files in long format, showing details like permissions, owner, size, and modification date. -
ls -a: Lists all files, including hidden files (those starting with a dot). -
ls -h: When used with-l, it shows file sizes in a human-readable format (e.g., KB, MB). -
ls -R: Lists files in the current directory and all subdirectories recursively. -
ls -t: Sorts files by modification time, with the most recently modified files listed first. -
ls -S: Sorts files by size, with the largest files listed first. -
ls -1: Lists one file per line.
You can combine options, like ls -la to list all files in long format. Experiment with these options to see how they change the output! If you have more questions, let me know!
