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.
Symbol that will show up first in output of `ls`?
ls
^, in ASCII order, follows the uppercase letters. - precedes all the letters and digits, but follows several other punctuation characters.The ASCII printable characters, in order, are: !#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\]^_`abcdefghijklmnopqrstuvwxyz{|}~But this doesn't necessarily help you, since the order in which ls lists files may be affected by the current locale.You could start the file name with a space or ! character, but that's going to make it difficult to refer to the file without quoting it -- and again, locale settings could interfere. Most of the other ASCII characters that precede the decimal digits will have similar problems.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 0s: 000_DELETED(I've used a similar technique to name e-mail folders in Thunderbird and Outlook.)