The ls -h command is used to list directory contents with human-readable file sizes. When you use the -h option in conjunction with -l (like ls -lh), it displays file sizes in a more understandable format, using units like KB, MB, or GB instead of just bytes.
For example:
ls -lh
This will show file sizes in a format that is easier to read, such as 1.5K for 1500 bytes or 2.3M for 2.3 megabytes.
