Support LQ: Use code LQ3 and save $3 on Domain Registration
Go Back > Blogs
User Name



git commit

Posted 01-10-2012 at 09:20 PM by 915086731

Creating and Commiting

$ cd (project-directory)
$ git init
$ (add some files)
$ git add .
$ git commit -m 'Initial commit'

Cloning and Creating a Patch

$ git clone git://
$ cd hello-world
$ (edit files)
$ git add (files)
$ git commit -m 'Explain what I changed'
$ git format-patch origin/master

Basic Commands
$ git status
Posted in Uncategorized
Views 4341 Comments 1 915086731 is offline


Posted 01-10-2012 at 07:17 AM by brianL
Updated 01-10-2012 at 07:18 AM by brianL

Here's my todo list for 2012, in no particular order:
Learn to type, using more than two fingers of one hand.
Learn how to use vim and emacs.
Learn how to program: bash scripting, C, Python or Perl, assembly.
Learn more in general about using GNU/Linux.
But, acknowledging the fact that I'm incurably lazy, I shall be making the same todo list this time next year.
LQ 5k Club
Posted in Uncategorized
Views 23884 Comments 7 brianL is offline

How to pass command line arguments to main() through GDB? - C

Posted 01-10-2012 at 07:12 AM by TheIndependentAquarius
Updated 02-03-2012 at 06:32 AM by TheIndependentAquarius (Thanks to Mr.Code for pointing out the nonsense)

#include <stdio.h>
#include <string.h>

int main (int argc, char *argv[])
   if (argc >= 2)
      int i;
      for (i = 1; i < argc; i++)
         printf ("\nHaalloo! %s", argv[i]);
      printf ("\nForgot to key in something?");

   return 0;
Passing command line arguments to main() through...
Senior Member
Posted in GNU GDB
Views 12146 Comments 3 TheIndependentAquarius is offline

samba Account with LDAP in Centos 6

Posted 01-09-2012 at 09:07 AM by

Please Help I am using Centos 6. I wanted to configure samba to use ldap account as i am using LDAP for SVN .
Unnikrishnan P R

Thanks in Advance
LQ Newbie
Posted in Uncategorized
Views 5148 Comments 1 is offline

To copy the Content of web in unix file.

Posted 01-09-2012 at 01:42 AM by azheruddin

I have one quey iam hitting one URL in browser its giving a expected output,but when iam trying through SSH then its connecting to that site but not able to copy the content of that file.
I need that browser contents in one file,i want to apply some manipulation on that one,these contents are in XMl and changes daily so daily i need that content so i can perform some operation and get a desired result,but iam not getting the contents in UNix Environment,so anyone can help...
Posted in Uncategorized
Views 374 Comments 0 azheruddin is offline


All times are GMT -5. The time now is 10:43 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration