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,
- Rename a directory using Linux/Unix command
- ls command to list only directories
- How to Restart or Reload Nginx Server Service on Linux
- 3 ways to clear screen on Linux Terminal
- ls command: sort files by name alphabetically A-Z or Z-A [Linux/Unix/macOS/Bash]
- Copy entire directory using Terminal Command [Linux, Mac, Bash]
- Fix: sudo: unable to open Read-only file system
- Create Hidden File or Directory using Shell Command
- Command to know the installed Debian version?
- The Date Command and its usage [Linux - Unix - macOS]
- Fix - bash: man: command not found
- How to tar.gz a directory or folder Command
- How to Display content of a file in Terminal Screen?
- How to change bash terminal prompt string and color
- Sort ls command by last modified date and time
- Execute .bin and .run file Ubuntu Linux
- zsh hello world example
- How to check uptime of Linux/Unix/macOS system/server using console command?
- [Fix] Linux - bash: useradd: command not found
- Command to check Last Login or Reboot History of Users and TTYs
- How to install and Configure sar sysstat tools in Ubuntu Linux
- How to use SCP Command to Copy Directory
- Linux Remove or Delete Files and Directories using Terminal Commands
- How to connect to SSH port other than default 22
- Install OpenSSL on Linux/Ubuntu
More Posts:
- Fix: Python IndentationError: unexpected indent - Python
- Android Emulator Soft Back button action using Computer keyboard - Android
- Fix: ModuleNotFoundError: No module named requests - Python
- [fix] Java NullPointerException ComparableTimSort countRunAndMakeAscending when sorting a List - Java
- Add scroll to div element in HTML Css - CSS
- Best free Decompiler for Java - Java
- Add or remove users from sudo group - Ubuntu - Ubuntu
- Add Blank Lines Between Each Lines in Notepad++ - NotepadPlusPlus