Ederico Asked: 2011-11-20 04:41:01 +0800 CST2011-11-20 04:41:01 +0800 CST 2011-11-20 04:41:01 +0800 CST How to sort files by file extensions through the command line? 772 This is my question: How to sort files by file extensions through the command line? command-line 1 Answers Voted Best Answer bioShark 2011-11-20T04:52:26+08:002011-11-20T04:52:26+08:00 This is what you are looking for: ls -Xl From the man file: -X sort alphabetically by entry extension This is an example of how you could move .txt files into a test forlder: mv *.txt test/
This is what you are looking for:
From the man file:
This is an example of how you could move .txt files into a test forlder: