
As /applications/webdevelopment will be absolute path and crm/logs will be called as relative path because the crm/logs is connected with the absolute path. If the path starts from the / then the path will be the absolute and if the path don’t start with / then the path will be relative. So, the relative path will always be relative to you.įor example: /Applications/Webdevelopment/CRM/logs

The difference between both paths is absolute path start from the root directory while the relative path is given from your current location. The path is of two types: absolute and relative Path. There is a hierarchy in which the path is followed. The path tells the computer where the file or folder is stored in the computer. So’ let’e see how we can change directory in terminal on mac.Įvery folder of file have its own unique address that is called path. The directory is just a two-word command ( cd )that we can use to change it but changing it in a mac terminal can be little tricky. When we work in a command-line environments like mac terminal, we often needs to change directories. But for now we will be discussing how you can change directory in terminal on mac. We can perform many different tasks using terminal.

The terminal is really helpful for mac user but if you are a new user then you may don’t know how to use it to do different tasks. Mac users use terminal for many purposes.
