tag: 'scripting: finding absolute path'

Narrow your search:

    Log in Sign up
    2 Matching Annotations
    1. Aug 2022
    2. www.baeldung.com www.baeldung.com
      Expand A Relative Path In Bash | Baeldung on Linux
      1
      1. TylerRick 01 Aug 2022
        in Public
        We can use the readlink command to resolve relative paths, including symlinks. It uses the -f flag to print the full path:
        scripting: finding absolute path
      Visit annotations in context

      Tags

      • scripting: finding absolute path

      Annotators

      • TylerRick

      URL

      baeldung.com/linux/bash-expand-relative-path
    3. stackoverflow.com stackoverflow.com
      Determine the path of the executing BASH script
      1
      1. TylerRick 01 Aug 2022
        in Public
        MY_PATH=$(cd "$MY_PATH" && pwd) # absolutized and normalized

        scripting: finding absolute path

        annotation meta: may need new tag scripting: finding absolute path
      Visit annotations in context

      Tags

      • annotation meta: may need new tag
      • scripting: finding absolute path

      Annotators

      • TylerRick

      URL

      stackoverflow.com/questions/630372/determine-the-path-of-the-executing-bash-script
    Share:
    Group. Only group members will be able to view this annotation.
    Only me. No one else will be able to view this annotation.
    Hypothes.is
    • About
    • Blog
    • Bioscience
    • Education
    • Jobs
    • Help
    • Contact
    • Terms of Service
    • Privacy Policy