Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

209
Views
How to change ls -a in terminal

I did a lot of customization to bash recently, and I've noticed a small but frustrating problem. When I enter $ ls -a into my home directory it lists all the files and directories one per line rather than the normal two or three per line. What is particularly strange is that this does not happen with $ ls or $ ls -a into any other directory the output is standard.

It only happens with the -a flag when in my home directory. Has anyone else encountered this problem, and have any tips on solving it?

over 4 years ago · Santiago Trujillo
1 answers
Answer question

0

It sounds like you have a particularly long dotfile in your home dir.

ls shows files in columns, but if one filename is exceptionally long, it can only fit one column.

Here's a command that will show the longest filenames in your ls output:

ls -a | awk '{print length($0), $0}' | sort -n
over 4 years ago · Santiago Trujillo Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!