Skip to Content
gnux

-e, --canonicalize-existing

All components of the path must exist.

An option of realpathx.

Usage

realpathx -e FILE...
realpathx --canonicalize-existing FILE...

Details

ShortLongValueDefaultMeaning
-e--canonicalize-existingnoneall components of the path must exist

Examples

Require the file to exist

realpathx -e /usr/bin/python3

Test for existence quietly and branch on the exit status

realpathx -q -e config.yaml >/dev/null || echox 'config.yaml is missing'

Help in the terminal

gnux help realpathx --canonicalize-existing

On this page