Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
You can not. ( Supposing by "alphabetically" you mean "like the market leader OS does". Otherwise, that list is already sorted alphabetically. )rkam said:1. How to sort them alphabetically?
You can not.rkam said:2. How to list only directories alphabetically?
You can not. ( Supposing by "only files" you mean "like the market leader OS does". Otherwise, that list already contains only files. )rkam said:3. How to list only files alphabetically?
[gray]# sort by name alphabetically, case insensitive[/gray]
ls | sort -f
ls -l | sort -k 8
[gray]# display only files of type directory[/gray]
ls -l | grep ^d
find . -maxdepth 1 -type d
[gray]# display files of other type than directory[/gray]
ls -l | grep -v ^d
[gray]# list only regular files[/gray]
find . -maxdepth 1 -type f
function myls()
{
local path="${1:-.}" type="$2"
find "$path" -maxdepth 1 ${type:+-type $type} | sort -f
}
[blue]master #[/blue] LC_ALL=POSIX ls -1
TWO
one
three
[blue]master #[/blue] LC_ALL=en_US ls -1
one
three
TWO