In Magento 2, you can get admin path by two ways:
1) Get Admin Path via Command Line(CLI)
You need to run below command in terminal at magento 2 root directory to get the admin path.
Command:
php bin/magento info:adminuri
Output:
Admin URI: /admin
2) Get Admin Path from env.php File
Reach at: app\etc\env.php
Find below code in file.
'backend' => [
'frontName' => 'admin'
]
I hope this blog is useful for you.
Thank you):