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.

Aug 012010
 

http://svnbook.red-bean.com/en/1.0/ch04s02.html

Answer:

In SVN, if you want to create a branch, you can use the following command.

# svn copy http://example.com/svn/repos/demo/trunk \
           http://example.com/svn/repos/demo/branches/my-test-branch \
      -m "My test branch for the 'demo' project."

Committed revision 125.
Jul 232010
 

Creating a simple tag in SVN

Answer:

In SVN, a tag is a “snapshot” of a project in time. By creating a tag of a project, this allow you to easily reference a particular version sometimes later.

To create a tag, use svn copy:

# svn copy http://example.com/svn/repos/demo/trunk \
           http://example.com/svn/repos/demo/tags/release-1.0.0 \
      -m "Tagging the 1.0.0 release of the 'demo' project."

Committed revision 124.
Jul 222010
 

Display attributes of a logical volume under LVM

Answer:

If you are using LVM, you can easily display attributes of a logical volume using the command lvmdisplay

# sudo /usr/sbin/lvdisplay

  /dev/sdb: read failed after 0 of 2048 at 0: Input/output error
  /dev/sdb1: read failed after 0 of 2048 at 0: Input/output error
  /dev/sdb2: read failed after 0 of 2048 at 0: Input/output error
  /dev/sdb3: read failed after 0 of 2048 at 0: Input/output error
  --- Logical volume ---
  LV Name                /dev/vg0/d148
  VG Name                vg0
  LV UUID                JhG2hr-lnyx-yT2h-rUMN-7tuP-yW0j-rQ1YSu
  LV Write Access        read/write
  LV Status              available
  # open                 1
  LV Size                80.00 GB
  Current LE             20480
  Segments               1
  Allocation             inherit
  Read ahead sectors     auto
  - currently set to     256
  Block device           253:0
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