What does sourcing a file means in Linux?

Sourcing a file means to execute everything within a file.
Important point about Sourcing is that, it will execute the file within the current process/shell rather creating a new child process.


Sourcing can be done in two ways

1) using source keyword
   




2)Using dot
   







Enjoy Linux...!!!!







How to remove dpkg lock

Sometimes, when we install any package, this following error comes

"dpkg status database is locked"


You can remove this lock simply by restarting but
hey common,
give me a break....
restart should be the last solution to every problem.
So,  just do this






Voila...error solved...!!!!!









more git commands...!!!

Back

How to remove any directory locally and push the change.

$ git rm -r name_of_the_directory
$ git commit -m "message"
$ git push origin BranchName 



How to undo git add command

Sometimes, we index some file and then we want to undo the operation due to various reasons like the file has been deleted intentionally. 

So, for that, 

$ git reset -- fileName

Remember, -- is the most important thing


it will not work, if you will just do

$ git reset fileName








































Jenkins Installation




  • Download jenkins war file under LTS Release from here
  • To start jenkins, 
  • open command prompt
  • goto the directory where you have downloaded the jenkins.war file.
  • Run  
Java -jar jenkins.war


and you will see the below screen






Open your web browser and goto localhost:8080

You will see









Next >




























GETTING STARTED


  • Jenkins is one of the most popular systems currently in use. So, what Jenkins all about?
  • Jenkins is a Continuous Integration server.
  • Continuous Integration helps to run tests on a non-developer machine automatically whenever there is a change in code inside the repository.
  • So, quickly based on automatic testing, we can tell whether the build broke or passed. Due to fast feedback, we can analyse the console inside Jenkins and check where was the error.
  • If we run these tests occasionally, then there are chances of huge changes in code and so very tough to find the bug and revert back.
  • Based on successful testing, Jenkins deploys the new built, making the release very smooth and simple.