What commands will list the files in the working directory in their reverse alphabetical order?

1 answer

Answer

1109007

2026-03-22 22:15

+ Follow

ls | sort -r

Use ls command to list all files, in the present directory. Then pipe '|' the output of the ls command to sort -r. The -r option will reverse the sort.

ReportLike(0ShareFavorite

Copyright © 2026 eLLeNow.com All Rights Reserved.