I want a folder called DELETED
to be first in my output of ls
.
Is there a symbol I can add to the front that can cause this? I've tried ^
and -
and neither works.
I want a folder called Is there a symbol I can add to the front that can cause this? I've tried |
|||
add comment |
The ASCII printable characters, in order, are:
But this doesn't necessarily help you, since the order in which You could start the file name with a space or Your best bet, assuming you don't have other files with odd characters in their names, might be to start the file name with a string of
(I've used a similar technique to name e-mail folders in Thunderbird and Outlook.) |
|||
|
On GNU systems at least in most locales other than C/POSIX, there are a few characters that are ignored with regards to sorting. That's the case for instance of That's why For strings that consist only of those ignored characters, the sort order is defined in the locale, ASCII SPC comes generally first. So a single space character would be the file that sorts first (even before 0x1 (the first one in C locale), Among the non-ignored characters, ASCII 0 is generally the character that sorts first in non-C locales. So a file called 0 would sort before any other file than contains non-ignored characters. Prepending So a file called In non-C locales, it would still sort after Another option could be to write
|
|||||
|
ls DELETED
? – Ramesh 8 hours ago