How to change ls -a in terminal

Recently, I changed the bash setting a bit and I noticed a small but unpleasant problem. When I enter $ ls -amy home directory, it lists all the files and directories one by one per line, not normal two or three per line. What is particularly strange is that this does not happen to $ lsor $ ls -ato any other directory that is standard.

This only happens with the flag -awhen in my home directory. Has anyone else encountered this problem and received any advice on how to solve it?

+3
source share
1 answer

It looks like you have a particularly long file in your home directory.

ls , , .

, ls :

ls -a | awk '{print length($0), $0}' | sort -n
+5

All Articles