+49 (0) 89 2154 7447
Provenexpert
★★★★★
Google
★★★★★
BrandCrock | Gateway to Digital Brand

How to get full file path Linux? Get the absolute path of a file?

In this tutorial, we will guide you about how to get the Absolute Path of a File in the Linux Operating System and How to get full file path Linux.

Readlink linux command to get full file path Linux:

readlink command in Linux is used to print resolved symbolic links or canonical file names. Whenever we have a symbolic link and we want to know what full path it refers to. You could use the readlink command to display the actual path of the symbolic link.

Print value of a symbolic link or canonical file name.

Syntax:

readlink [OPTION]... FILE...
OPTION:
  -f, --canonicalize            canonicalize by following every symlink in
                                every component of the given name recursively;
                                all but the last component must exist
  -e, --canonicalize-existing   canonicalize by following every symlink in
                                every component of the given name recursively,
                                all components must exist
  -m, --canonicalize-missing    canonicalize by following every symlink in
                                every component of the given name recursively,
                                without requirements on components existence
  -n, --no-newline              do not output the trailing delimiter
  -q, --quiet
  -s, --silent                  suppress most error messages (on by default)
  -v, --verbose                 report error messages
  -z, --zero                    end each output line with NUL, not newline
      --help     display this help and exit
      --version  output version information and exit

Example

readlink -f myfile.txt

Output

/home/user/dos2021/myfile.txt

More from our latest blogs

Shopware 6 plugin Variant products in detail page

This plugin allows visitors to see all product variants in the product detail page. Visitors

News Mustafa Ali Jun 23, 2020

Shopware 6 Plugin Products Count of Categories I Sidebar

In default shopware sidebar on category listing page there is no product counts with category

News Mustafa Ali Feb 20, 2020

Shopware 6 Plugin Special Offer Product | Sidebar

Shopware 6 plugin Special offer product | sidebar allows you to dynamically display Special offer

News brandcrock_admin Feb 20, 2020

Shopware 6 Plugin Advanced Mega Menu

Shopware 6 plugin Advanced Mega Menu will help you to simplify the navigation and usability

News Alan Bradford Feb 20, 2020
1 27 28 29 30 31 43
Scroll to Top