Include special characters when sorting files by name (Fedora 12 i386)
Linux - NewbieThis Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place!
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Include special characters when sorting files by name (Fedora 12 i386)
Hi,
I am dragging my files over to a new Fedora 12 installation and I just noticed that special characters are not taken into account when sorting files by name (I want '_js' to come before 'images').
Is there a way to make the sorting process behave like Windows, where files starting with a special character are listed first?
I'm looking for a way to change the order of the directories and files themselves
There is no "ordering" of file-and-directory entries in directories. I guess the order is the result of creation and deletion history, programmed for performance. You can see the actual order by using vdir with the -u option.
We are so used to seeing the order presented by shell filename expansion and ls that it's easy to assume the directory itself is ordered.
I've sorted it out now - I just wanted certain directories to appear before others regardless of their names, so I've arranged them by emblems now which does the job.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.