Turn Your Vehicle Into a Smart Earning Asset

While you’re not driving your car or bike, it can still be working for you. MOTOSHARE helps you earn passive income by connecting your vehicle with trusted renters in your city.

🚗 You set the rental price
🔐 Secure bookings with verified renters
📍 Track your vehicle with GPS integration
💰 Start earning within 48 hours

Join as a Partner Today

It’s simple, safe, and rewarding. Your vehicle. Your rules. Your earnings.

Linux Tutorials: Understanding absolute and relative path

When specifying a directory to change to, you can use either absolute or relative path names. The absolute or full path starts from the system root /, and the relative path starts from your current directory.

By default, when you log into your Linux system, your current working directory is set to your home directory. Assuming that the Downloads directory exists in your home directory, you can navigate to it by using the relative path to the directory:

$ cd Downloads

You can also navigate to the same directory by using its absolute path:

$ cd /home/username/Downloads

In short, if the path starts with a slash (/), it is the absolute path to the directory

Linux: Absolute Path

$ cd /usr/lib$ cd /usr/lib pwd
See this path (linux#1/usr/lib), when you give PWD, it gives a full path from the root level. This is called absolute or full path.

Think of the absolute pathname as being the complete mailing address for a package that the postal service will deliver to your next-door neighbor.

Linux: Relative Path

$ cd usr$ /user cd lib$ /usr/lib pwd$ linux#1/usr/lib    ==> Going step by step and achieving.
$ linux#1/usr/lib  cd ../../   ==> This is the method of going back step by step.
$ linux#1  ==> This is root level directory
You are currently in the lib directory. So relative path nothing but complete information of all the mother directories.
Here, for lib, the usr is the mother directory.
In simple terms, it is a step-by-step way and to reach your target directory.

Subscribe
Notify of
guest
0 Comments
Newest
Oldest Most Voted
Inline Feedbacks
View all comments

Certification Courses

DevOpsSchool has introduced a series of professional certification courses designed to enhance your skills and expertise in cutting-edge technologies and methodologies. Whether you are aiming to excel in development, security, or operations, these certifications provide a comprehensive learning experience. Explore the following programs:

DevOps Certification, SRE Certification, and DevSecOps Certification by DevOpsSchool

Explore our DevOps Certification, SRE Certification, and DevSecOps Certification programs at DevOpsSchool. Gain the expertise needed to excel in your career with hands-on training and globally recognized certifications.

0
Would love your thoughts, please comment.x
()
x