If you just use the ls command without any options the output will be displayed in one line,
Example:code2care@mac ~ % ls
Desktop Downloads Movies Pictures
Documents Library Music Public
If you want the output to be displayed one entry per line, use -1 (number 1) optional parameter with the ls command.
Example on macOS terminal:code2care@mac ~ % ls -1
Desktop
Documents
Downloads
Library
Movies
Music
Pictures
Public

ls command to show one entry per line
If you want to see more details about the directories and files you can make use of ls -l (lowercase letter l) command,
Example:code2care@mac ~ % ls -l
total 0
drwx------+ 5 code2care staff 160 Jan 10 14:10 Desktop
drwx------+ 3 code2care staff 96 Jan 2 23:03 Documents
drwx------+ 3 code2care staff 96 Jan 2 23:03 Downloads
drwx------@ 68 code2care staff 2176 Jan 6 20:29 Library
drwx------ 4 code2care staff 128 Jan 2 23:33 Movies
drwx------+ 6 code2care staff 192 Jan 5 22:37 Music
drwx------+ 4 code2care staff 128 Jan 2 23:28 Pictures
drwxr-xr-x+ 4 code2care staff 128 Jan 2 23:03 Public

ls command with -l option output
More Posts related to Linux,
- [Fix] Linux - bash: useradd: command not found
- Calculate days between dates using dateutils ddiff command
- pwd Command - Print Working Directory
- Rename a directory using Linux/Unix command
- How to go to the End of File in Nano Editor
- How to tar.gz a directory or folder Command
- How to remove/delete a directory in Linux/macOs
- How to Display content of a file in Terminal Screen?
- ls command sort by file size [Linix/UNIX/macOS/bash]
- How to Copy Entire Directory to another Directory in Linux
- 3 ways to clear screen on Linux Terminal
- Command to check Last Login or Reboot History of Users and TTYs
- How to check uptime of Linux/Unix/macOS system/server using console command?
- How to backup a file in Linux/Unix
- Command to know the installed Debian version?
- Check SSH/OpenSSH version Command
- 3 Commands to stop Nginx Server
- Linux: Create a New User and Password and Login Example
- How to install npm on Ubuntu
- How to List All Users in Linux
- How to Get the List of Shells on Linux
- Fix - ssh-copy-id no identities found error
- Installing and using unzip Command to unzip a zip file using Terminal
- scp: ssh: connect to host xxxx port 22: Connection refused Error
- zsh hello world example
More Posts:
- How to use Autocomplete and Autosuggestion in Shell Commands - Bash
- How to hide or cancel Toast message in Android Programming - Android
- How to extract Java Jar/War/Ear files in Linux - Java
- How to Enable Dark Mode Theme in Microsoft Teams - Teams
- How to make a div tag clickable - Html
- [Fix] brew: command not found Mac or Linux Terminal Error - MacOS
- How to Uninstall Brew on Mac - MacOS
- Java 8 Leap year check using Year class from java.time api - Java