# hg root > Display the root location of a Hg repository. > More information: . - Display the root location of the current repository: `hg root` - Display the root location of the specified repository: `hg root --cwd {{path/to/directory}}`