The sunshine is beautiful this morning, I started my day eating some of the raspberries that remained after my wife has had her conserving rage and now I read this intriguing idea. I had to look up the word “intriguing”.., but anyway.
No.
There is currently no way to do what you ask for.
But what a nice programming exercise this would be!
Other such realizations often bear a major flaw: The descriptions must be provided and maintained. And you must decide beforehand about the “
granularity” of the information that you seek to convey.
But many file types on a Linux system are already covered and their description is found in arbitrary places, like in the magic files or just inside the file for picture formats, PDF- and many office-formats (as long as you do not care to “
clean” this information away).
An alternative ls-command may not be equally useful for everybody or not in many situations. But I kind of like the idea...
And directories are like the cream on the cake (complete with the cherry): Imagine a nice way to concatenate and condense the file-information from the list of directory-entries.
One clumsy work-around:
Code:
user@machine:~$ for f in `ls`; do if test -f "$f";then file "$f"; fi; done
Edit: No. Not even clumsy. This may actually be the base for a downright shell-script solution and a good reason to keep the magic file up to date. Here is one contribution from me:
Code:
0 string MV\x00\xFF\x0c\x00\x0e\x00
>8 string \x19 TextMaker 2016
>8 string \x17 TextMaker 2012
>8 string \x13 TextMaker 2006
>8 string \x08 TextMaker 2002
>>9 string \x00\x03\x00-YA1 SoftMaker Office Document (before ~2015)