Linux terminal find command ignores case search

Use parameter -iname instead of -name

  1. Add the parameter -name after the find command to search case-sensitively by name.
  2. Add the parameter -iname after the find command to search by name ignoring case.
 //eg: 从根目录查找名字为 MyTempLog.log 的文件 不区分大小写
  find / -iname "MyTempLog.log"

Guess you like

Origin blog.csdn.net/only_a_Heroic_car/article/details/130619079