Posts

Showing posts with the label Relative Vs Absolute Path

Featured Post

How to Build CI/CD Pipeline: GitHub to AWS

Image
 Creating a CI/CD pipeline to deploy a project from GitHub to AWS can be done using various AWS services like AWS CodePipeline, AWS CodeBuild, and optionally AWS CodeDeploy or Amazon ECS for application deployment. Below is a high-level guide on how to set up a basic GitHub to AWS pipeline: Prerequisites AWS Account : Ensure access to the AWS account with the necessary permissions. GitHub Repository : Have your application code hosted on GitHub. IAM Roles : Create necessary IAM roles with permissions to interact with AWS services (e.g., CodePipeline, CodeBuild, S3, ECS, etc.). AWS CLI : Install and configure the AWS CLI for easier management of services. Step 1: Create an S3 Bucket for Artifacts AWS CodePipeline requires an S3 bucket to store artifacts (builds, deployments, etc.). Go to the S3 service in the AWS Management Console. Create a new bucket, ensuring it has a unique name. Note the bucket name for later use. Step 2: Set Up AWS CodeBuild CodeBuild will handle the build proces

Relative Vs. Absolute Path in Linux: Top Differences

Image
 Here's the difference between the relative and absolute paths in Linux. Many a time, the programmer needs to trade in these paths. Here're simple ideas on how you can differentiate. Absolute Vs. Relative path These are the differences between Absolute and Relative path in 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. 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, th