Go Premium for a chance to win a PS4. Enter to Win
ls -Fx | less
ls -Fltr | less
ls -Flt | less
Open in new window
# First determine the width of your screen
07:35:12$ stty size
# The second number is the width. Give this to ls (only seems to work if you also give -x)
09:06:58$ ls -xw80|less
Account.cpp Account.cpp.bu Account.h
Account.h.bu Bordered$1.class Bordered.class
Bordered.java Bounds$1.class Bounds$BoxedLabel.class
Bounds.class Bounds.java EtherLinkXL.c
# (further output suppressed)
# ls -Fxw80|less also works
Author Closing Comment
We value your feedback.
Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!
If you are experiencing a similar issue, please ask a related question
Join the community of 500,000 technology professionals and ask your questions.
Join & Ask a Question
Join our community for more solutions or to ask questions.
For immediate help use Live now!