Categories
GNU/Linux

Copy Files with specific extension from multiple directories into a single directory Linux

How to Copy Files with specific extension from multiple directories into a single directory Linux find . -type f -print0 | xargs -0 cp -t /home/my/dir/ The only problem is file name conflicts…hmmm how to solve?

Categories
GNU/Linux

What is the default php includes path on linux?

This post specifies the default php includes path on a linux distribution. The one I used was gentoo. This is the path that will be globally included in all your php projects. It is: include_path = “.:/usr/share/php5:/usr/share/php” If you want to change this path, just change the above line in php.ini and restart apache or […]

Categories
git

Git Tutorial Part 3: Ignoring Files (Gitignore)

Git Ignoring Files In most projects we have a set of files that we do not want to track these are usually logs or compilation or runtime files. In these cases we make use of: .gitignore To create a file listing to match the files we don’t want to track: cat .gitignore *.[oa] *~ This […]

Categories
GNU/Linux

Glob Patterns

man 7 glob Glob Patterns: Globbing Pathnames Long ago, in Unix V6, the was a program /etc/glob that would expand wildcard patterns.Soon it was built into shell and bash. Glob (Wildcard) Matching A string is a wildcard pattern if it contains one of the characters: ?  *  [ Globbing is the operation that expands a […]

Categories
git

Git Tutorial Part 2: Repository, Cloning, Tracking and Staging

This article gives the basics for a beginner user who needs to start tracking and contributing to projects managed with git. The Git Repository Initialising from an existing directory git init This command creates the .git directory.At this point nothing is tracked though. git add * git add README git commit -m ‘Initial Commit’ Cloning […]