To run the ls
command in case-insensitive mode on a Linux or Unix system, you can use the -f
option. This option tells the ls
command to ignore the case of filenames and sort the output in a case-insensitive manner.
For example, to list the files in the current directory in a case-insensitive manner, you can use the following command:
ferer to:lautturi.comls -f
If you want to display the files in a case-insensitive manner and also show hidden files, you can use the -a
option in combination with the -f
option:
ls -af
Keep in mind that the -f
option does not change the case of the filenames themselves, it only affects the way the ls
command sorts the output. If you want to change the case of the filenames themselves, you can use the rename
command or another tool such as exiv2
or perl
.