Artificial intelligent assistant

Grouping hidden files and directories with ls How can `ls` be flagged to sort `.`-prefixed hidden directories and files in groups so that its output is sorted as visible directories, hidden directories, visible files, then hidden files? I currently have ls aliased to `ls -lG --color --group-directories-first` which groups directories first, but visible and hidden directories are mixed together. Instead, the output of `ls` should be: visibleDirectoryA visibleDirectoryB .hiddenDirectoryA .hiddenDirectoryB visibleFileA visibleFileB .hiddenFileA .hiddenFileB

Use `-v` for natural sort. e.g.


ls -lG --color --group-directories-first -A -v


Note while they are sorted into their own "group", the .hidden directories will appear **before** the visible directories, not after them, because a `.` sorts lower than most other characters.

xcX3v84RxoQ-4GxG32940ukFUIEgYdPy 9d827f4d4fb46af7946a82ce006124f3