Let ls command omit case sensitive characters
如何让
ls
命令忽略大小写?
bash
### switch off case sensitive mode
shopt -s nocaseglob
### switch on case sensitive mode (default)
shopt -u nocaseglob
### help shopt
help shopt
zsh
### switch on case sensitive mode
unsetopt CASE_GLOB
### switch off case sensitive mode (default)
setopt CASE_GLOB
Disclaimer
- License under
CC BY-NC 4.0
- Copyright issue feedback
me#imzye.me
, replace # with @ - Not all the commands and scripts are tested in production environment, use at your own risk
- No privacy information is collected here