realpath -m /etc/../usr/bin/env

Category: Administration

realpath -m /etc/../usr/bin/env

Resolve a path without requiring existence

The -m flag canonicalizes a path purely by string logic, so the target does not need to exist on disk. This is useful for building paths that a program will create later. Symlinks are not resolved in this mode.
Looking for more? Search all 7,657 commands — works offline, in English or Spanish, and fixes typos.