Linux Ask!

Linux Ask! is a Q & A web site specific for Linux related questions. Questions are collected, answered and audited by experienced Linux users.

Jul 212010
 

How to check the ./configure arguments used during last program compilation

Answer:

Normally, when you downloaded a program source and compile youself, you need to run the ./configure for customized settings.

In order to check the ./configure arguments used during last program compilation, you can check the following three files (depends on package) in the source folder .

  1. config.status
  2. config.nice
  3. config.log
Jul 132010
 

How to create a patch

Answer:

Let say you have two folders, foo and bar.

The folder bar is originally copied from the folder foo, but later you have chanegd some files inside bar.

Now you want to create a patch (We will see later, when this patch applied to foo, it will produce the same contents as in bar).

# diff -crB foo bar > bar.patch

Jul 122010
 

Compare the difference between two directories

Answer:

You have two directories, say /foo and /bar, and you want to compare the difference between this two directories, you can use

# diff -r /foo /bar

If you only want to know which files difference, you can use

# diff -qr /foo /bar