ls command is only showing files, and no folders (spaces? instead of them)
Today I typed ls command in my home directory, and it only showed "examples.desktop" and not the folders. But in the past, it showed all the folders like Documents and Downloads. What is the problem and is there a way to fix that?
Screenshot
Output of alias ls
alias ls='ls --color=auto'
Based on your screenshot, it appears that the files are indeed being displayed. It's just that they happen to have the same color as the background so you are not seeing them.
Some solutions:
1) (recommended) Change the color scheme: Make sure nothing shares the same color as the background by opening a terminal and go to Edit
> Profile Preferences
> Colors
tab.
-OR-
2) Change your background color: Follow instructions from (1).
-OR-
3) Stop ls
from printing in different colors: Go into your ~/.bashrc
file and locate the line that says alias ls='ls --color=auto'
. Comment it out by typing #
in front of it.