To list files by name in a directory, you can simply use the ls command without any options:
ls
This will display the names of the files and directories in the current directory in alphabetical order.
If you want a detailed listing (including file permissions, owner, size, and modification date) sorted by name, you can use:
ls -l
Both commands will list the files and directories by name in ascending alphabetical order.
