非常简单,使用grep -rn xxx
搜索即可.注意可能不支持中文字符.
定位文件位置
[root@VM_0_16_centos mynote]# cd /data/wwwroot/wordpress/wp-content/themes/mynote
[root@VM_0_16_centos mynote]# ls
404.php assets category.php custom-landing-page-full.php editor-style.css functions.php inc languages page.php screenshot.png search.php style.css template-parts
archive.php author.php comments.php custom-landing-page-simple.php footer.php header.php index.php LICENSE README.txt searchform.php single.php tag.php
[root@VM_0_16_centos mynote]# grep -rn "12005352" *
inc/template-tags.php:579: echo ' <a href="' . esc_url( $beian ) . '" target="_blank">' . '桂ICP备12005352号-3' . '</a>. ';
[root@VM_0_16_centos mynote]#
修改inc/template-tags.php:579
为新的备案信息.
留言