Linux doesn't support to sort file by type. Please have a look at the tree documentation.
Have a look at the following answer on Super User on how you can use sort
command instead to sort by file type.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.