Path kya hota hai, iske baare mein batayein?

 

Path (पाथ) क्या होता है?

Path किसी फ़ाइल या वेब पेज के स्थान (Location) को दिखाने वाला पूरा पता होता है। यह फोल्डर, सब-फोल्डर, और फाइल का सही स्थान बताता है।


1. कंप्यूटर में Path (File Path)

जब हम किसी फ़ाइल या फ़ोल्डर का पता बताते हैं, तो उसे File Path कहते हैं।

Example (Windows में Path):   

(Windows  Path):


C:\Users\Rahul\Documents\Report.pdf
Example (Linux/Mac में Path)
  /home/rahul/Documents/Report.pdf

 यहाँ C:\Users\Rahul\Documents\फ़ोल्डर पाथ है और Report.pdf फ़ाइल है।


2. URL में Path (Website Path)

वेबसाइट के पेज का सही पता URL Path कहलाता है।

Example:
https://www.example.com/products/laptops/dell.html    

URL  Path (Website Path)

🔹 यहाँ:

  • https://www.example.comडोमेन नाम
  • /products/laptops/dell.htmlपाथ (यह दिखाता है कि यह पेज "Products" के "Laptops" सेक्शन में है)

Path के प्रकार:

1️⃣ Absolute Path (पूर्ण पाथ) → यह पूरा एड्रेस दिखाता है।

  • Example (Windows): C:\Users\Rahul\Desktop\file.txt
  • Example (Website): https://www.example.com/home.html  
    Absolute Path

2️⃣ Relative Path (अनुपातिक पाथ) → यह मौजूदा लोकेशन के आधार पर शॉर्टकट में दिखाता है।   

Relative Path

  • Example: ./Documents/file.txt (यह मौजूदा फोल्डर में "Documents" नामक फोल्डर के अंदर है)

Conclusion:

Path यह बताता है कि कोई फ़ाइल या वेबपेज कहाँ स्थित है और उसे कैसे एक्सेस किया जाए।

क्या आपको किसी खास तरह के Path के बारे में जानना है?  

Conclusion:

Comments

Popular posts from this blog

Business ko listing websites par submit karna kya hota hai?"

Excel Basic Short Keys ?

Robots.txt SEO me kis purpose se use ki jaati hai?"