How can I find a specific file from a Linux terminal?

前端 未结 6 1801
夕颜
夕颜 2020-12-24 05:17

I am trying to find where index.html is located on my linux server, and was wondering if there was a command to do that. Very new to linux and appreciate any he

6条回答
  •  礼貌的吻别
    2020-12-24 05:43

    Try this (via a shell):

    update db
    locate index.html
    

    Or:

    find /var -iname "index.html"
    

    Replace /var with your best guess as to the directory it is in but avoid starting from /

提交回复
热议问题