Question

Differentiate between absolute and relative path names, along with an example of each.

02 Aug 2023
Answer :
Word Count : 331

Absolute and relative path names are used to specify the location or path of a file or directory within a file system. The main difference between them lies in how they reference the location of a file or directory.

  1. Absolute Path:
    An absolute path provides the complete path starting from the root directory and includes all the directories leading to the file or directory in question. It provides an unambiguous and fixed location for a file or directory, regardless of the current working directory. Absolute paths typically start with a forward slash (/) in Unix-like systems or a drive letter (e.g., C:/) in Windows.

Example:
Unix-like system: /home/user/Documents/file.txt

_____ ______ _______ __________ _________ __________ _______ _____.
________ ______ _____ ________ ___ __________ ____ __________ __________ _____ ____ ____.
______ _____ _________ ____ _________ ______ _______ ______ __________.
________ ________ ______ _____ ___ __________.
______ _____ ______ _______ ______ _______ ____ ____.
_______ __________ ________ ____ _______ __________ _____ __________ __________ _____ _______ ___.
_______ ____ ____ ___ _______ _________ ____ ______ ___ ____ __________ _______.
_________ ____ _________ ________ ____ ______ ______.
________ ______ _____ ____ ___ ____ ______ _____ _______ _____.
___ ______ ___ ________ ____ _________.
________ _________ _____ _________ ________ ______ ______.
_____ __________ __________ _______ ________ ___ _______ ____ ______ __________ _____.
___ ______ ________ ____ ________ _______ ___ _______ __________ __________.
____ ____ __________ ____ ___ ___ ___ ________ _____ _________ ____.
______ _________ ______ ___ ____ ______ ____ __________.
______ _________ _____ ___ ____ _________ ___.
_____ ____ ___ _______ _____ __________ __________ _______ ________ ____ ________.
____ __________ _________ _______ _________ _________ ____ ____ ______ __________ _____.
________ __________ __________ ________ _____.
____ _________ _____ __________ ______ _________ _____ ____ _________.
________ ______ ___ _______ ___ _____ ___.
_________ ____ ___ ____ ____ __________ ___ _________ _______ ________ _____ _____.
_____ __________ _______ ________ _________ _____ _______ ___ __________.
___ ______ _____ ____ ________ _____ ___ _________ _________ ______.
IGNOU ACADEMY
Your IGNOU journey, made easier.
  • Solved Assignments
  • Study Notes
  • Guess Papers
  • Question Papers
Skip in 10
Top
📞
Call Support Instant phone assistance IGNOU MCS 22 2023 2024 - Differentiate between absolute and relative path names, along with an | IGNOU Academy
→
🟢
WhatsApp Chat Fast live messaging
→
Email Us Business enquiries & support
→