Common ls options include:
-a: Lists all files, including hidden files (those starting with a dot).-l: Displays detailed information about files and directories in a long format.-h: Shows file sizes in a human-readable format (e.g., KB, MB).-R: Lists subdirectories recursively, showing their contents as well.-S: Sorts files by size, largest first.-t: Sorts files by modification time, with the newest first.-r: Reverses the order of the sort.-X: Sorts files alphabetically by file extension.-1: Lists one file per line.
You can combine these options for more customized output, such as ls -alh to show all files with detailed information and human-readable sizes.
