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