ls command output

Hi Team ,

I need clarification on ls -U command . The man pages say display with out sorting ,  Need an help on this command how this works. Not able to depict the output
Who is Participating?
nociSoftware EngineerCommented:
try a few different commands...

ls -l      # alphabetical sort
ls -lr    # reverse alphabetical sort
ls -lS   # sort on size
ls -lSr  # reverse sort on size

ls -U    # unsorted..., this more or less will be the order in which filename fit into the directory file

Open in new window

A delete will leave a hole, if a new name fits there it will be put there.
Unsorted is the order in which the filenames are found in the directory file.
sam_2012Author Commented:
awesome. thanks a lot
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.