How to quickly locate the web path in Linux

Source: Internet
Author: User

If there are hundreds of websites on the server and the folder names are randomly generated, it will be even more depressing.
But don't be discouraged. There are still ways to quickly locate the target. We only need to use two Linux commands
First, find a link to an image on the target site and view the image file name. For example, www.jb51.net/img/fuckyou.jpg.let's write down fuckyou.jgp, and then use the find command to find the location of fuckyou.jpg.
Find-name/WWW fuckyou.jpg> 1.txt
After the execution, we can upload the 1.txt content cat 1.txt, which shows the data pair path of wwww.jb51.net on the server.

Or use the locate command to find
Locate fuckyou.jpg> 1.txt
In this way, even if the web server configuration file cannot be found, we can quickly locate the absolute path of the target server.
Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.