Change the owner of a folder in linux

Suppose you need to make a user ‘newuser’ as an owner and ‘newgroup’ as a group of a folder ‘FOLDER’, then

$ sudo chown -R newuser:newgroup FOLDER
Advertisements

How to create a remote branch and fetch the code in Git

Type the command below to see, what all branches are there in remote.

$ git branch -r
  origin/HEAD -> origin/master
  origin/master
  origin/optimize-cities
  origin/optimize-merchants
  origin/release-dec-30
  origin/sso
  origin/staging

Create the remote Staging branch in local and fetch code:

 $ git checkout --track origin/staging

Install timedoctor in ubuntu 12.04

Sign Up from http://www.timedoctor.com/

Install timedoctor from here:
http://www.timedoctor.com/download.html

Install dependancies:

$ sudo apt-get install libxss1
$ sudo apt-get install libxmu

Go to the downloaded folder and do

$ chmod a+x setup-timedoctor-2.3.5-linux.run
$ ./setup-timedoctor-2.3.5-linux.run