Skip to Content
gnux

--relative-base

Print absolute paths unless paths below DIR.

An option of realpathx.

Usage

realpathx --relative-base=DIR FILE...

Details

ShortLongValueDefaultMeaning
--relative-baseDIRprint absolute paths unless paths below DIR

Examples

Make names under the project relative, but leave outside ones absolute

realpathx --relative-base=. lib/util.go /etc/hosts

Help in the terminal

gnux help realpathx --relative-base

On this page