Tools

Sync two folders with commands in Linux

rsync -av --exclude='.git/' --exclude='*.*~' --include='*.org' /home/zw/code/org/ ~/code/siemens/org --delete It puts folder /code/org ’s content into folder /code/siemens/org. useful options -a Do the sync preserving all filesystem attributes -v run verbosely –delete delete the files in target folder that do not exist in the source.

C and C++ Compile

Table of Contents Refs GCC Compile a C program Setting search path Extended search paths Shared libraries and static libraries Cmake My example (A big project contains sub-projects) Set CMake build variables Refs GCC Compile a C program compile multiple files