Path kya hota hai, iske baare mein batayein?
- Get link
- X
- Other Apps
Path (पाथ) क्या होता है?
Path किसी फ़ाइल या वेब पेज के स्थान (Location) को दिखाने वाला पूरा पता होता है। यह फोल्डर, सब-फोल्डर, और फाइल का सही स्थान बताता है।
1. कंप्यूटर में Path (File Path)
जब हम किसी फ़ाइल या फ़ोल्डर का पता बताते हैं, तो उसे File Path कहते हैं।
Example (Windows में Path):
C:\Users\Rahul\Documents\Report.pdfExample (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
🔹 यहाँ:
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
2️⃣ Relative Path (अनुपातिक पाथ) → यह मौजूदा लोकेशन के आधार पर शॉर्टकट में दिखाता है।
- Example:
./Documents/file.txt(यह मौजूदा फोल्डर में "Documents" नामक फोल्डर के अंदर है)
Conclusion:
Path यह बताता है कि कोई फ़ाइल या वेबपेज कहाँ स्थित है और उसे कैसे एक्सेस किया जाए।
क्या आपको किसी खास तरह के Path के बारे में जानना है?
- Get link
- X
- Other Apps
.jpeg)
.jpeg)
.jpeg)
.jpeg)
.jpeg)
Comments
Post a Comment