The ls command is used to list all the files in the current directory

ls
 
directory/ file.md file2.md

It’s possible to add the -a flag to also show hidden files

ls -a
 
.git/ directory/ file.md file2.md .config

With the -l (lowercase L) flag, we can list the files in the long format, which includes more details like the date of creation, the source file for symbolic links and the permission.

ls -l
 
drwxr-xr-x@   3 dov  staff       96 Nov 27  2023 tmp
lrwxr-xr-x@   1 dov  staff       19 Apr 14  2024 tmux -> .dotfiles/tmux/tmux
drwxr-xr-x   10 dov  staff      320 May  3  2024 zsh-syntax-highlighting
lrwxr-xr-x@   1 dov  staff       21 Mar 26  2024 zshrc -> .dotfiles/zshrc/zshrc